We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066520d commit 1ce3a79Copy full SHA for 1ce3a79
src/lib.rs
@@ -146,13 +146,6 @@ pub struct LineColumn {
146
#[derive(Copy, Clone)]
147
pub struct Span(imp::Span);
148
149
-#[doc(hidden)]
150
-impl Default for Span {
151
- fn default() -> Span {
152
- Span(imp::Span::def_site())
153
- }
154
-}
155
-
156
impl Span {
157
pub fn call_site() -> Span {
158
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
0 commit comments