We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2690296 commit 4859689Copy full SHA for 4859689
compiler/rustc_symbol_mangling/src/v0.rs
@@ -69,6 +69,12 @@ pub(super) fn mangle<'tcx>(
69
}
70
71
pub fn mangle_internal_symbol<'tcx>(tcx: TyCtxt<'tcx>, item_name: &str) -> String {
72
+ if item_name == "__rust_no_alloc_shim_is_unstable" {
73
+ // Temporary back compat hack to give people the chance to migrate to
74
+ // include #[rustc_std_internal_symbol].
75
+ return "__rust_no_alloc_shim_is_unstable".to_owned();
76
+ }
77
+
78
let prefix = "_R";
79
let mut cx: SymbolMangler<'_> = SymbolMangler {
80
tcx,
0 commit comments