We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e678b3f commit 68ebe7aCopy full SHA for 68ebe7a
rust/allocator/lib.rs
@@ -86,6 +86,12 @@ mod both_allocators {
86
/// As part of rustc's contract for using `#[global_allocator]` without
87
/// rustc-generated shims we must define this symbol, since we are opting in
88
/// to unstable functionality. See https://github.com/rust-lang/rust/issues/123015
89
+ #[rustc_std_internal_symbol]
90
+ #[linkage = "weak"]
91
+ fn __rust_no_alloc_shim_is_unstable_v2() {}
92
+
93
+ // TODO(crbug.com/422538133) Remove after rolling past
94
+ // https://github.com/rust-lang/rust/pull/141061
95
#[no_mangle]
96
#[linkage = "weak"]
97
static __rust_no_alloc_shim_is_unstable: u8 = 0;
0 commit comments