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