Skip to content

Commit

Permalink
Avoid calling Symbol::interner in compute_codegen_unit_name
Browse files Browse the repository at this point in the history
  • Loading branch information
marmeladema committed Sep 25, 2020
1 parent 657ecdb commit 75130b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_mir/src/monomorphize/partitioning/default.rs
Expand Up @@ -357,9 +357,7 @@ fn compute_codegen_unit_name(

let components = def_path.data.iter().map(|part| match part.data.name() {
DefPathDataName::Named(name) => name,
DefPathDataName::Anon { namespace } => {
Symbol::intern(&format!("{{{{{}}}}}", namespace))
}
DefPathDataName::Anon { .. } => unreachable!(),
});

let volatile_suffix = volatile.then_some("volatile");
Expand Down

0 comments on commit 75130b0

Please sign in to comment.