Skip to content

Commit f01ecb0

Browse files
committed
Update allocator libraries
1 parent 4c9b66a commit f01ecb0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/cc_common_link/allocator_library.cc

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ extern "C" __attribute__((weak))
5050
void __rust_alloc_error_handler(uintptr_t size, uintptr_t align) {
5151
__rdl_oom(size, align);
5252
}
53+
54+
// New requirement as of Rust 1.71.0. For more details see
55+
// https://github.com/rust-lang/rust/issues/73632.
56+
__attribute__((weak)) uint8_t __rust_no_alloc_shim_is_unstable = 0;

test/cc_common_link/global_allocator_library.cc

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ extern "C" __attribute__((weak))
5050
void __rust_alloc_error_handler(uintptr_t size, uintptr_t align) {
5151
__rg_oom(size, align);
5252
}
53+
54+
// New requirement as of Rust 1.71.0. For more details see
55+
// https://github.com/rust-lang/rust/issues/73632.
56+
__attribute__((weak)) uint8_t __rust_no_alloc_shim_is_unstable = 0;

0 commit comments

Comments
 (0)