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
21
21
unicode-xid = " 0.1"
22
22
23
23
[features ]
24
-
25
24
# When enabled: act as a shim around the nightly compiler's proc_macro crate.
26
25
# This requires a nightly compiler.
27
26
#
28
27
# When disabled: emulate the same API as the nightly compiler's proc_macro crate
29
28
# but in a way that works on all stable compilers >=1.15.0.
30
29
nightly = []
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 {
146
146
#[ derive( Copy , Clone ) ]
147
147
pub struct Span ( imp:: Span ) ;
148
148
149
- #[ doc( hidden) ]
150
- impl Default for Span {
151
- fn default ( ) -> Span {
152
- Span ( imp:: Span :: def_site ( ) )
153
- }
154
- }
155
-
156
149
impl Span {
157
150
pub fn call_site ( ) -> Span {
158
151
Span ( imp:: Span :: call_site ( ) )
@@ -211,7 +204,7 @@ pub struct TokenTree {
211
204
212
205
impl From < TokenNode > for TokenTree {
213
206
fn from ( kind : TokenNode ) -> TokenTree {
214
- TokenTree { span : Span :: default ( ) , kind : kind }
207
+ TokenTree { span : Span :: def_site ( ) , kind : kind }
215
208
}
216
209
}
217
210
You can’t perform that action at this time.
0 commit comments