Replace Symbol::intern
calls with preinterned symbols
This commit is contained in:
parent
72d2db7bf4
commit
71b698c0b8
15 changed files with 40 additions and 35 deletions
|
@ -3113,6 +3113,7 @@ impl<'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
|
||||
let existing_name = match &in_scope_lifetimes[..] {
|
||||
[] => Symbol::intern("'a"),
|
||||
[(existing, _)] => existing.name,
|
||||
|
|
|
@ -2270,7 +2270,7 @@ fn module_to_string(module: Module<'_>) -> Option<String> {
|
|||
collect_mod(names, parent);
|
||||
}
|
||||
} else {
|
||||
names.push(Symbol::intern("<opaque>"));
|
||||
names.push(sym::opaque_module_name_placeholder);
|
||||
collect_mod(names, module.parent.unwrap());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue