diff --git a/compiler/rustc_symbol_mangling/src/legacy.rs b/compiler/rustc_symbol_mangling/src/legacy.rs index b0d5f34090241..6356a7e783255 100644 --- a/compiler/rustc_symbol_mangling/src/legacy.rs +++ b/compiler/rustc_symbol_mangling/src/legacy.rs @@ -56,15 +56,7 @@ pub(super) fn mangle( let hash = get_symbol_hash(tcx, instance, instance_ty, instantiating_crate); let mut printer = SymbolPrinter { tcx, path: SymbolPath::new(), keep_within_component: false } - .print_def_path( - def_id, - if let ty::InstanceDef::DropGlue(_, _) = instance.def { - // Add the name of the dropped type to the symbol name - &*instance.substs - } else { - &[] - }, - ) + .print_def_path(def_id, &[]) .unwrap(); if let ty::InstanceDef::VtableShim(..) = instance.def {