@@ -16,22 +16,22 @@ unsafe extern "Rust" {
1616 // otherwise.
1717 #[ rustc_allocator]
1818 #[ rustc_nounwind]
19- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
19+ #[ rustc_std_internal_symbol]
2020 fn __rust_alloc ( size : usize , align : usize ) -> * mut u8 ;
2121 #[ rustc_deallocator]
2222 #[ rustc_nounwind]
23- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
23+ #[ rustc_std_internal_symbol]
2424 fn __rust_dealloc ( ptr : * mut u8 , size : usize , align : usize ) ;
2525 #[ rustc_reallocator]
2626 #[ rustc_nounwind]
27- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
27+ #[ rustc_std_internal_symbol]
2828 fn __rust_realloc ( ptr : * mut u8 , old_size : usize , align : usize , new_size : usize ) -> * mut u8 ;
2929 #[ rustc_allocator_zeroed]
3030 #[ rustc_nounwind]
31- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
31+ #[ rustc_std_internal_symbol]
3232 fn __rust_alloc_zeroed ( size : usize , align : usize ) -> * mut u8 ;
3333
34- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
34+ #[ rustc_std_internal_symbol]
3535 static __rust_no_alloc_shim_is_unstable: u8 ;
3636}
3737
@@ -360,7 +360,7 @@ unsafe extern "Rust" {
360360 // This is the magic symbol to call the global alloc error handler. rustc generates
361361 // it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
362362 // default implementations below (`__rdl_oom`) otherwise.
363- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
363+ #[ rustc_std_internal_symbol]
364364 fn __rust_alloc_error_handler ( size : usize , align : usize ) -> !;
365365}
366366
@@ -427,7 +427,7 @@ pub mod __alloc_error_handler {
427427 unsafe extern "Rust" {
428428 // This symbol is emitted by rustc next to __rust_alloc_error_handler.
429429 // Its value depends on the -Zoom={panic,abort} compiler option.
430- #[ cfg_attr ( not ( bootstrap ) , rustc_std_internal_symbol) ]
430+ #[ rustc_std_internal_symbol]
431431 static __rust_alloc_error_handler_should_panic: u8 ;
432432 }
433433
0 commit comments