File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,9 @@ doctest = false
2121unicode-xid = " 0.1"
2222
2323[features ]
24-
2524# When enabled: act as a shim around the nightly compiler's proc_macro crate.
2625# This requires a nightly compiler.
2726#
2827# When disabled: emulate the same API as the nightly compiler's proc_macro crate
2928# but in a way that works on all stable compilers >=1.15.0.
3029nightly = []
31-
32- # Deprecated; use "nightly" instead.
33- unstable = [" nightly" ]
Original file line number Diff line number Diff line change @@ -146,13 +146,6 @@ pub struct LineColumn {
146146#[ derive( Copy , Clone ) ]
147147pub struct Span ( imp:: Span ) ;
148148
149- #[ doc( hidden) ]
150- impl Default for Span {
151- fn default ( ) -> Span {
152- Span ( imp:: Span :: def_site ( ) )
153- }
154- }
155-
156149impl Span {
157150 pub fn call_site ( ) -> Span {
158151 Span ( imp:: Span :: call_site ( ) )
@@ -211,7 +204,7 @@ pub struct TokenTree {
211204
212205impl From < TokenNode > for TokenTree {
213206 fn from ( kind : TokenNode ) -> TokenTree {
214- TokenTree { span : Span :: default ( ) , kind : kind }
207+ TokenTree { span : Span :: def_site ( ) , kind : kind }
215208 }
216209}
217210
You can’t perform that action at this time.
0 commit comments