Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4859689

Browse files
committedJun 30, 2024
Add temporary back compat hack for rust-for-linux
1 parent 2690296 commit 4859689

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
@@ -69,6 +69,12 @@ pub(super) fn mangle<'tcx>(
6969
}
7070

7171
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+
7278
let prefix = "_R";
7379
let mut cx: SymbolMangler<'_> = SymbolMangler {
7480
tcx,

0 commit comments

Comments
 (0)
Failed to load comments.