diff options
| author | bors <bors@rust-lang.org> | 2019-05-18 02:10:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-18 02:10:21 +0000 |
| commit | 548add7f61bfcbe3bea3f5ccefb53c84da8fefe4 (patch) | |
| tree | c033c6bf9f7e7646613ea8ce0125c511fd2483c9 /src/libsyntax/ext | |
| parent | a614cee22e8d79766c6a6d0f63c28f12eaec63f4 (diff) | |
| parent | 4ab5fe3f97a260f2cb2b3c06a9a841a05a659e57 (diff) | |
| download | rust-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/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index a286fd83e3c..019ebc8566f 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1522,19 +1522,19 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> { let include_info = vec![ ast::NestedMetaItem::MetaItem( attr::mk_name_value_item_str( - Ident::from_str("file"), + Ident::with_empty_ctxt(sym::file), dummy_spanned(file), ), ), ast::NestedMetaItem::MetaItem( attr::mk_name_value_item_str( - Ident::from_str("contents"), + Ident::with_empty_ctxt(sym::contents), dummy_spanned(src_interned), ), ), ]; - let include_ident = Ident::from_str("include"); + let include_ident = Ident::with_empty_ctxt(sym::include); let item = attr::mk_list_item(DUMMY_SP, include_ident, include_info); items.push(ast::NestedMetaItem::MetaItem(item)); } @@ -1600,7 +1600,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> { } } - let meta = attr::mk_list_item(DUMMY_SP, Ident::from_str("doc"), items); + let meta = attr::mk_list_item(DUMMY_SP, Ident::with_empty_ctxt(sym::doc), items); match at.style { ast::AttrStyle::Inner => *at = attr::mk_spanned_attr_inner(at.span, at.id, meta), ast::AttrStyle::Outer => *at = attr::mk_spanned_attr_outer(at.span, at.id, meta), |
