@@ -16,22 +16,22 @@ unsafe extern "Rust" {
16
16
// otherwise.
17
17
#[ rustc_allocator]
18
18
#[ rustc_nounwind]
19
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
19
+ #[ rustc_std_internal_symbol]
20
20
fn __rust_alloc ( size : usize , align : usize ) -> * mut u8 ;
21
21
#[ rustc_deallocator]
22
22
#[ rustc_nounwind]
23
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
23
+ #[ rustc_std_internal_symbol]
24
24
fn __rust_dealloc ( ptr : * mut u8 , size : usize , align : usize ) ;
25
25
#[ rustc_reallocator]
26
26
#[ rustc_nounwind]
27
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
27
+ #[ rustc_std_internal_symbol]
28
28
fn __rust_realloc ( ptr : * mut u8 , old_size : usize , align : usize , new_size : usize ) -> * mut u8 ;
29
29
#[ rustc_allocator_zeroed]
30
30
#[ rustc_nounwind]
31
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
31
+ #[ rustc_std_internal_symbol]
32
32
fn __rust_alloc_zeroed ( size : usize , align : usize ) -> * mut u8 ;
33
33
34
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
34
+ #[ rustc_std_internal_symbol]
35
35
static __rust_no_alloc_shim_is_unstable: u8 ;
36
36
}
37
37
@@ -360,7 +360,7 @@ unsafe extern "Rust" {
360
360
// This is the magic symbol to call the global alloc error handler. rustc generates
361
361
// it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
362
362
// default implementations below (`__rdl_oom`) otherwise.
363
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
363
+ #[ rustc_std_internal_symbol]
364
364
fn __rust_alloc_error_handler ( size : usize , align : usize ) -> !;
365
365
}
366
366
@@ -427,7 +427,7 @@ pub mod __alloc_error_handler {
427
427
unsafe extern "Rust" {
428
428
// This symbol is emitted by rustc next to __rust_alloc_error_handler.
429
429
// Its value depends on the -Zoom={panic,abort} compiler option.
430
- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
430
+ #[ rustc_std_internal_symbol]
431
431
static __rust_alloc_error_handler_should_panic: u8 ;
432
432
}
433
433
0 commit comments