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 6a88995 commit fbdc749Copy full SHA for fbdc749
allocator/allocator.rs
@@ -50,8 +50,9 @@ use alloc::alloc::__alloc_error_handler;
50
51
#[rustc_std_internal_symbol]
52
#[linkage = "weak"]
53
-#[allow(non_upper_case_globals)]
54
-pub static __rust_alloc_error_handler_should_panic: u8 = 1;
+pub unsafe fn __rust_alloc_error_handler_should_panic_v2() -> u8 {
+ 1
55
+}
56
57
58
0 commit comments