diff options
Diffstat (limited to 'src/libsyntax/test.rs')
| -rw-r--r-- | src/libsyntax/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs index 7cd83f3e495..206320f58b7 100644 --- a/src/libsyntax/test.rs +++ b/src/libsyntax/test.rs @@ -29,7 +29,7 @@ use crate::parse::{token, ParseSess}; use crate::print::pprust; use crate::ast::{self, Ident}; use crate::ptr::P; -use crate::symbol::{self, Symbol, keywords, sym}; +use crate::symbol::{self, Symbol, kw, sym}; use crate::ThinVec; struct Test { @@ -100,7 +100,7 @@ impl<'a> MutVisitor for TestHarnessGenerator<'a> { fn flat_map_item(&mut self, i: P<ast::Item>) -> SmallVec<[P<ast::Item>; 1]> { let ident = i.ident; - if ident.name != keywords::Invalid.name() { + if ident.name != kw::Invalid { self.cx.path.push(ident); } debug!("current path: {}", path_name_i(&self.cx.path)); @@ -139,7 +139,7 @@ impl<'a> MutVisitor for TestHarnessGenerator<'a> { } item.node = ast::ItemKind::Mod(module); } - if ident.name != keywords::Invalid.name() { + if ident.name != kw::Invalid { self.cx.path.pop(); } smallvec![P(item)] |
