about summary refs log tree commit diff
path: root/library/std/src/alloc.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2022-04-05 22:42:23 +0200
committerPietro Albini <pietro@pietroalbini.org>2022-04-05 23:18:40 +0200
commit181d28bb6110dc974879db20d433f21aa142db3a (patch)
tree3bbc185fd9386b9cc050235fd1785820fcaaae5c /library/std/src/alloc.rs
parente96538aeeb2a71e672e1d1a40dcaf0ad34a826b5 (diff)
downloadrust-181d28bb6110dc974879db20d433f21aa142db3a.tar.gz
rust-181d28bb6110dc974879db20d433f21aa142db3a.zip
trivial cfg(bootstrap) changes
Diffstat (limited to 'library/std/src/alloc.rs')
-rw-r--r--library/std/src/alloc.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs
index ae11964cb56..49b6cd4232c 100644
--- a/library/std/src/alloc.rs
+++ b/library/std/src/alloc.rs
@@ -315,14 +315,11 @@ pub fn take_alloc_error_hook() -> fn(Layout) {
 }
 
 fn default_alloc_error_hook(layout: Layout) {
-    #[cfg(not(bootstrap))]
     extern "Rust" {
         // This symbol is emitted by rustc next to __rust_alloc_error_handler.
         // Its value depends on the -Zoom={panic,abort} compiler option.
         static __rust_alloc_error_handler_should_panic: u8;
     }
-    #[cfg(bootstrap)]
-    let __rust_alloc_error_handler_should_panic = 0;
 
     #[allow(unused_unsafe)]
     if unsafe { __rust_alloc_error_handler_should_panic != 0 } {