Skip to content

Commit 75130b0

Browse files
committed
Avoid calling Symbol::interner in compute_codegen_unit_name
1 parent 657ecdb commit 75130b0

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_mir/src/monomorphize/partitioning

1 file changed

+1
-3
lines changed

compiler/rustc_mir/src/monomorphize/partitioning/default.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,7 @@ fn compute_codegen_unit_name(
357357

358358
let components = def_path.data.iter().map(|part| match part.data.name() {
359359
DefPathDataName::Named(name) => name,
360-
DefPathDataName::Anon { namespace } => {
361-
Symbol::intern(&format!("{{{{{}}}}}", namespace))
362-
}
360+
DefPathDataName::Anon { .. } => unreachable!(),
363361
});
364362

365363
let volatile_suffix = volatile.then_some("volatile");

0 commit comments

Comments
 (0)