Skip to content

Commit a080e34

Browse files
committed
Add temporary back compat hack for rust-for-linux
1 parent 93c069c commit a080e34

File tree

1 file changed

+6
-0
lines changed
  • compiler/rustc_symbol_mangling/src

1 file changed

+6
-0
lines changed

compiler/rustc_symbol_mangling/src/v0.rs

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ pub(super) fn mangle<'tcx>(
7676
}
7777

7878
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+
7985
let prefix = "_R";
8086
let mut cx: SymbolMangler<'_> = SymbolMangler {
8187
tcx,

0 commit comments

Comments
 (0)