blob: 84a7ed8c778aa79fb4d17cfe395837416aec9312 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/build/rust/allocator/lib.rs b/build/rust/allocator/lib.rs
index 29b3af1274..142c6e6084 100644
--- a/build/rust/allocator/lib.rs
+++ b/build/rust/allocator/lib.rs
@@ -90,6 +90,12 @@ mod both_allocators {
#[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;
+
// Mangle the symbol name as rustc expects.
#[rustc_std_internal_symbol]
#[allow(non_upper_case_globals)]
|