diff options
| author | marmeladema <xademax@gmail.com> | 2020-09-01 09:31:02 +0100 |
|---|---|---|
| committer | marmeladema <xademax@gmail.com> | 2020-09-25 22:46:15 +0100 |
| commit | 75130b06bff9cf4af528cf19513f802a837bdd23 (patch) | |
| tree | c85c02b7387cf64c8b9dbac1547f1ac0969310a6 | |
| parent | 657ecdb75e2a9f8e8295bc75d9fe810f02605130 (diff) | |
| download | rust-75130b06bff9cf4af528cf19513f802a837bdd23.tar.gz rust-75130b06bff9cf4af528cf19513f802a837bdd23.zip | |
Avoid calling `Symbol::interner` in `compute_codegen_unit_name`
| -rw-r--r-- | compiler/rustc_mir/src/monomorphize/partitioning/default.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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"); |
