about summary refs log tree commit diff
path: root/library/alloc/src/boxed.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2025-02-18 09:10:45 -0800
committerJosh Stone <jistone@redhat.com>2025-02-18 09:32:44 -0800
commit3c45324e678d7148d542f08ced5c666dba2e1d60 (patch)
treee5d08e737c8827d812fae27271435cf6f3a705fa /library/alloc/src/boxed.rs
parent82ad08ea7fa613012b270789063544b7e9c53320 (diff)
downloadrust-3c45324e678d7148d542f08ced5c666dba2e1d60.tar.gz
rust-3c45324e678d7148d542f08ced5c666dba2e1d60.zip
update `cfg(bootstrap)`
Diffstat (limited to 'library/alloc/src/boxed.rs')
-rw-r--r--library/alloc/src/boxed.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 4b124b5a3b3..493a22fcd01 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -237,7 +237,6 @@ pub struct Box<
 /// the newly allocated memory. This is an intrinsic to avoid unnecessary copies.
 ///
 /// This is the surface syntax for `box <expr>` expressions.
-#[cfg(not(bootstrap))]
 #[rustc_intrinsic]
 #[rustc_intrinsic_must_be_overridden]
 #[unstable(feature = "liballoc_internals", issue = "none")]
@@ -245,15 +244,6 @@ pub fn box_new<T>(_x: T) -> Box<T> {
     unreachable!()
 }
 
-/// Transition function for the next bootstrap bump.
-#[cfg(bootstrap)]
-#[unstable(feature = "liballoc_internals", issue = "none")]
-#[inline(always)]
-pub fn box_new<T>(x: T) -> Box<T> {
-    #[rustc_box]
-    Box::new(x)
-}
-
 impl<T> Box<T> {
     /// Allocates memory on the heap and then places `x` into it.
     ///