syntax: Make static/super/self/Self keywords + special ident cleanup
This commit is contained in:
@@ -148,7 +148,7 @@ impl fold::Folder for PreludeInjector {
|
||||
let vp = P(codemap::dummy_spanned(ast::ViewPathGlob(prelude_path)));
|
||||
mod_.items.insert(0, P(ast::Item {
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
ident: special_idents::invalid,
|
||||
ident: special_idents::Invalid,
|
||||
node: ast::ItemKind::Use(vp),
|
||||
attrs: vec![ast::Attribute {
|
||||
span: self.span,
|
||||
@@ -157,7 +157,9 @@ impl fold::Folder for PreludeInjector {
|
||||
style: ast::AttrStyle::Outer,
|
||||
value: P(ast::MetaItem {
|
||||
span: self.span,
|
||||
node: ast::MetaItemKind::Word(special_idents::prelude_import.name.as_str()),
|
||||
node: ast::MetaItemKind::Word(
|
||||
token::intern_and_get_ident("prelude_import")
|
||||
),
|
||||
}),
|
||||
is_sugared_doc: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user