Skip to content

Commit

Permalink
Always generate tokens with the call_site span
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 11, 2017
1 parent 876230c commit a0bc6fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ pub mod __rt {
// `super`s". No idea why that's spit out, but ensuring that the default
// span comes out seems to fix it!
tokens.append_all(s.into_iter().map(|mut t| {
t.span = Default::default();
t.span = Span::call_site();
t
}));
}

pub fn append_kind(tokens: &mut ::Tokens, kind: TokenNode) {
tokens.append(TokenTree {
span: Default::default(),
span: Span::call_site(),
kind: kind,
})
}
Expand Down

0 comments on commit a0bc6fe

Please sign in to comment.