@@ -191,9 +191,7 @@ use core::error::{self, Error};
191191use core:: fmt;
192192use core:: future:: Future ;
193193use core:: hash:: { Hash , Hasher } ;
194- #[ cfg( not( bootstrap) ) ]
195- use core:: marker:: PointerLike ;
196- use core:: marker:: { Tuple , Unsize } ;
194+ use core:: marker:: { PointerLike , Tuple , Unsize } ;
197195use core:: mem:: { self , SizedTypeProperties } ;
198196use core:: ops:: {
199197 AsyncFn , AsyncFnMut , AsyncFnOnce , CoerceUnsized , Coroutine , CoroutineState , Deref , DerefMut ,
@@ -227,7 +225,7 @@ pub use thin::ThinBox;
227225#[ fundamental]
228226#[ stable( feature = "rust1" , since = "1.0.0" ) ]
229227#[ rustc_insignificant_dtor]
230- #[ cfg_attr ( not ( bootstrap ) , doc( search_unbox) ) ]
228+ #[ doc( search_unbox) ]
231229// The declaration of the `Box` struct must be kept in sync with the
232230// compiler or ICEs will happen.
233231pub struct Box <
@@ -1502,7 +1500,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
15021500 /// [`as_ptr`]: Self::as_ptr
15031501 #[ unstable( feature = "box_as_ptr" , issue = "129090" ) ]
15041502 #[ rustc_never_returns_null_ptr]
1505- #[ cfg_attr ( not ( bootstrap ) , rustc_as_ptr) ]
1503+ #[ rustc_as_ptr]
15061504 #[ inline]
15071505 pub fn as_mut_ptr ( b : & mut Self ) -> * mut T {
15081506 // This is a primitive deref, not going through `DerefMut`, and therefore not materializing
@@ -1551,7 +1549,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
15511549 /// [`as_ptr`]: Self::as_ptr
15521550 #[ unstable( feature = "box_as_ptr" , issue = "129090" ) ]
15531551 #[ rustc_never_returns_null_ptr]
1554- #[ cfg_attr ( not ( bootstrap ) , rustc_as_ptr) ]
1552+ #[ rustc_as_ptr]
15551553 #[ inline]
15561554 pub fn as_ptr ( b : & Self ) -> * const T {
15571555 // This is a primitive deref, not going through `DerefMut`, and therefore not materializing
@@ -2134,6 +2132,5 @@ impl<E: Error> Error for Box<E> {
21342132 }
21352133}
21362134
2137- #[ cfg( not( bootstrap) ) ]
21382135#[ unstable( feature = "pointer_like_trait" , issue = "none" ) ]
21392136impl < T > PointerLike for Box < T > { }
0 commit comments