aboutsummaryrefslogtreecommitdiffstats
path: root/devel/electron37/files/patch-build_rust_allocator_lib.rs
blob: c7a59f7ef4282cc6c1e4cb731e011d098ec99e49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- build/rust/allocator/lib.rs.orig	2025-08-11 20:33:34 UTC
+++ build/rust/allocator/lib.rs
@@ -86,6 +86,12 @@ mod both_allocators {
     /// As part of rustc's contract for using `#[global_allocator]` without
     /// rustc-generated shims we must define this symbol, since we are opting in
     /// to unstable functionality. See https://github.com/rust-lang/rust/issues/123015
+    #[rustc_std_internal_symbol]
+    #[linkage = "weak"]
+    fn __rust_no_alloc_shim_is_unstable_v2() {}
+
+    // TODO(crbug.com/422538133) Remove after rolling past
+    // https://github.com/rust-lang/rust/pull/141061
     #[no_mangle]
     #[linkage = "weak"]
     static __rust_no_alloc_shim_is_unstable: u8 = 0;