Add edition to expansion info
This commit is contained in:
parent
ee5b1e15aa
commit
640884bad0
11 changed files with 43 additions and 8 deletions
|
@ -14,7 +14,7 @@ use std::cell::Cell;
|
|||
use ext::hygiene::{Mark, SyntaxContext};
|
||||
use symbol::{Symbol, keywords};
|
||||
use syntax_pos::{DUMMY_SP, Span};
|
||||
use codemap::{ExpnInfo, NameAndSpan, MacroAttribute, dummy_spanned, respan};
|
||||
use codemap::{ExpnInfo, NameAndSpan, MacroAttribute, dummy_spanned, hygiene, respan};
|
||||
use ptr::P;
|
||||
use tokenstream::TokenStream;
|
||||
|
||||
|
@ -30,6 +30,7 @@ fn ignored_span(sp: Span) -> Span {
|
|||
span: None,
|
||||
allow_internal_unstable: true,
|
||||
allow_internal_unsafe: false,
|
||||
edition: hygiene::default_edition(),
|
||||
}
|
||||
});
|
||||
sp.with_ctxt(SyntaxContext::empty().apply_mark(mark))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue