diff --git a/compiler/rustc_mir/src/monomorphize/partitioning/default.rs b/compiler/rustc_mir/src/monomorphize/partitioning/default.rs index 62805a973f5..3c89111a659 100644 --- a/compiler/rustc_mir/src/monomorphize/partitioning/default.rs +++ b/compiler/rustc_mir/src/monomorphize/partitioning/default.rs @@ -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");