about summary refs log tree commit diff
path: root/src/libsyntax/test.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-18 02:10:21 +0000
committerbors <bors@rust-lang.org>2019-05-18 02:10:21 +0000
commit548add7f61bfcbe3bea3f5ccefb53c84da8fefe4 (patch)
treec033c6bf9f7e7646613ea8ce0125c511fd2483c9 /src/libsyntax/test.rs
parenta614cee22e8d79766c6a6d0f63c28f12eaec63f4 (diff)
parent4ab5fe3f97a260f2cb2b3c06a9a841a05a659e57 (diff)
downloadrust-548add7f61bfcbe3bea3f5ccefb53c84da8fefe4.tar.gz
rust-548add7f61bfcbe3bea3f5ccefb53c84da8fefe4.zip
Auto merge of #60910 - nnethercote:avoid-some-unnecessary-interning, r=petrochenkov
Avoid some unnecessary interning

r? @petrochenkov
Diffstat (limited to 'src/libsyntax/test.rs')
-rw-r--r--src/libsyntax/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs
index 21bc236d00e..3fd0790161c 100644
--- a/src/libsyntax/test.rs
+++ b/src/libsyntax/test.rs
@@ -171,7 +171,7 @@ impl MutVisitor for EntryPointCleaner {
             EntryPointType::MainAttr |
             EntryPointType::Start =>
                 item.map(|ast::Item {id, ident, attrs, node, vis, span, tokens}| {
-                    let allow_ident = Ident::from_str("allow");
+                    let allow_ident = Ident::with_empty_ctxt(sym::allow);
                     let dc_nested = attr::mk_nested_word_item(Ident::from_str("dead_code"));
                     let allow_dead_code_item = attr::mk_list_item(DUMMY_SP, allow_ident,
                                                                   vec![dc_nested]);
@@ -215,7 +215,7 @@ fn mk_reexport_mod(cx: &mut TestCtxt<'_>,
                    tests: Vec<Ident>,
                    tested_submods: Vec<(Ident, Ident)>)
                    -> (P<ast::Item>, Ident) {
-    let super_ = Ident::from_str("super");
+    let super_ = Ident::with_empty_ctxt(keywords::Super.name());
 
     let items = tests.into_iter().map(|r| {
         cx.ext_cx.item_use_simple(DUMMY_SP, dummy_spanned(ast::VisibilityKind::Public),