@@ -191,9 +191,7 @@ use core::error::{self, Error};
191
191
use core:: fmt;
192
192
use core:: future:: Future ;
193
193
use 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 } ;
197
195
use core:: mem:: { self , SizedTypeProperties } ;
198
196
use core:: ops:: {
199
197
AsyncFn , AsyncFnMut , AsyncFnOnce , CoerceUnsized , Coroutine , CoroutineState , Deref , DerefMut ,
@@ -227,7 +225,7 @@ pub use thin::ThinBox;
227
225
#[ fundamental]
228
226
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
229
227
#[ rustc_insignificant_dtor]
230
- #[ cfg_attr ( not ( bootstrap ) , doc( search_unbox) ) ]
228
+ #[ doc( search_unbox) ]
231
229
// The declaration of the `Box` struct must be kept in sync with the
232
230
// compiler or ICEs will happen.
233
231
pub struct Box <
@@ -1502,7 +1500,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1502
1500
/// [`as_ptr`]: Self::as_ptr
1503
1501
#[ unstable( feature = "box_as_ptr" , issue = "129090" ) ]
1504
1502
#[ rustc_never_returns_null_ptr]
1505
- #[ cfg_attr ( not ( bootstrap ) , rustc_as_ptr) ]
1503
+ #[ rustc_as_ptr]
1506
1504
#[ inline]
1507
1505
pub fn as_mut_ptr ( b : & mut Self ) -> * mut T {
1508
1506
// 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> {
1551
1549
/// [`as_ptr`]: Self::as_ptr
1552
1550
#[ unstable( feature = "box_as_ptr" , issue = "129090" ) ]
1553
1551
#[ rustc_never_returns_null_ptr]
1554
- #[ cfg_attr ( not ( bootstrap ) , rustc_as_ptr) ]
1552
+ #[ rustc_as_ptr]
1555
1553
#[ inline]
1556
1554
pub fn as_ptr ( b : & Self ) -> * const T {
1557
1555
// This is a primitive deref, not going through `DerefMut`, and therefore not materializing
@@ -2134,6 +2132,5 @@ impl<E: Error> Error for Box<E> {
2134
2132
}
2135
2133
}
2136
2134
2137
- #[ cfg( not( bootstrap) ) ]
2138
2135
#[ unstable( feature = "pointer_like_trait" , issue = "none" ) ]
2139
2136
impl < T > PointerLike for Box < T > { }
0 commit comments