Rename some things in syntax_pos/hygiene
More consistent with other naming: ExpnFormat -> ExpnKind ExpnKind::name -> ExpnKind::descr DesugaringKind::name -> DesugaringKind::descr Shorter, no tautology: CompilerDesugaring -> Desugaring CompilerDesugaringKind -> DesugaringKind
This commit is contained in:
parent
ec376c783e
commit
16918a8e28
25 changed files with 111 additions and 110 deletions
|
@ -3,7 +3,7 @@ use crate::attr;
|
|||
use crate::edition::Edition;
|
||||
use crate::ext::hygiene::{Mark, SyntaxContext};
|
||||
use crate::symbol::{Ident, Symbol, kw, sym};
|
||||
use crate::source_map::{ExpnInfo, MacroAttribute, dummy_spanned, respan};
|
||||
use crate::source_map::{ExpnInfo, ExpnKind, dummy_spanned, respan};
|
||||
use crate::ptr::P;
|
||||
use crate::tokenstream::TokenStream;
|
||||
|
||||
|
@ -17,7 +17,7 @@ use syntax_pos::{DUMMY_SP, Span};
|
|||
fn ignored_span(sp: Span, edition: Edition) -> Span {
|
||||
let mark = Mark::fresh(Mark::root());
|
||||
mark.set_expn_info(ExpnInfo::with_unstable(
|
||||
MacroAttribute(Symbol::intern("std_inject")), sp, edition, &[sym::prelude_import]
|
||||
ExpnKind::MacroAttribute(Symbol::intern("std_inject")), sp, edition, &[sym::prelude_import]
|
||||
));
|
||||
sp.with_ctxt(SyntaxContext::empty().apply_mark(mark))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue