Skip to content

Commit

Permalink
Add temporary back compat hack for rust-for-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jun 30, 2024
1 parent ea26029 commit aea9a3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_symbol_mangling/src/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ pub(super) fn mangle<'tcx>(
}

pub fn mangle_internal_symbol<'tcx>(tcx: TyCtxt<'tcx>, item_name: &str) -> String {
if item_name == "__rust_no_alloc_shim_is_unstable" {
// Temporary back compat hack to give people the chance to migrate to
// include #[rustc_std_internal_symbol].
return "__rust_no_alloc_shim_is_unstable".to_owned();
}

let prefix = "_R";
let mut cx: SymbolMangler<'_> = SymbolMangler {
tcx,
Expand Down

0 comments on commit aea9a3c

Please sign in to comment.