Skip to content

Commit b28af16

Browse files
committed
Add private Span field to LexError
1 parent 32e4b26 commit b28af16

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/fallback.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@ pub(crate) struct TokenStream {
3535
}
3636

3737
#[derive(Debug)]
38-
pub(crate) struct LexError {}
38+
pub(crate) struct LexError {
39+
span: Span,
40+
}
3941

4042
impl LexError {
4143
// Codepaths that will need a meaningful span attached as part of
4244
// https://github.com/alexcrichton/proc-macro2/issues/178
4345
pub(crate) fn todo() -> Self {
44-
LexError {}
46+
LexError {
47+
span: Span::call_site(),
48+
}
4549
}
4650
}
4751

0 commit comments

Comments
 (0)