commit | e6085b71802f21a9c5429af0a8b56e916c20c48a | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Tue Nov 21 07:24:25 2017 -0800 |
committer | Alex Crichton <alex@alexcrichton.com> | Tue Nov 21 07:24:25 2017 -0800 |
tree | 18b00236330227ccb65f7e090488d474600eb64f | |
parent | 5d6580725f5011c9f567268cb377338e79e44eb4 [diff] [blame] |
Add `Span::def_site`-the-API
diff --git a/src/unstable.rs b/src/unstable.rs index a3ce1fd..6705fb5 100644 --- a/src/unstable.rs +++ b/src/unstable.rs
@@ -166,10 +166,8 @@ pub fn call_site() -> Span { Span(proc_macro::Span::call_site()) } -} -impl Default for Span { - fn default() -> Span { + pub fn def_site() -> Span { Span(proc_macro::Span::def_site()) } }