Auto merge of #98638 - bjorn3:less_string_interning, r=tmiasko
Use less string interning This removes string interning in a couple of places where doing so won't result in perf improvements. I also switched one place to use pre-interned symbols.
This commit is contained in:
commit
1dcff2d507
14 changed files with 103 additions and 96 deletions
|
@ -271,8 +271,7 @@ impl<'a> Parser<'a> {
|
|||
// MACRO_RULES ITEM
|
||||
self.parse_item_macro_rules(vis, has_bang)?
|
||||
} else if self.isnt_macro_invocation()
|
||||
&& (self.token.is_ident_named(Symbol::intern("import"))
|
||||
|| self.token.is_ident_named(Symbol::intern("using")))
|
||||
&& (self.token.is_ident_named(sym::import) || self.token.is_ident_named(sym::using))
|
||||
{
|
||||
return self.recover_import_as_use();
|
||||
} else if self.isnt_macro_invocation() && vis.kind.is_pub() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue