@@ -556,7 +556,7 @@ impl<T: ?Sized> Cell<T> {
556556 #[ inline]
557557 #[ stable( feature = "cell_as_ptr" , since = "1.12.0" ) ]
558558 #[ rustc_const_stable( feature = "const_cell_as_ptr" , since = "1.32.0" ) ]
559- #[ cfg_attr ( not ( bootstrap ) , rustc_never_returns_null_ptr) ]
559+ #[ rustc_never_returns_null_ptr]
560560 pub const fn as_ptr ( & self ) -> * mut T {
561561 self . value . get ( )
562562 }
@@ -1112,7 +1112,7 @@ impl<T: ?Sized> RefCell<T> {
11121112 /// ```
11131113 #[ inline]
11141114 #[ stable( feature = "cell_as_ptr" , since = "1.12.0" ) ]
1115- #[ cfg_attr ( not ( bootstrap ) , rustc_never_returns_null_ptr) ]
1115+ #[ rustc_never_returns_null_ptr]
11161116 pub fn as_ptr ( & self ) -> * mut T {
11171117 self . value . get ( )
11181118 }
@@ -2107,7 +2107,7 @@ impl<T: ?Sized> UnsafeCell<T> {
21072107 #[ inline( always) ]
21082108 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21092109 #[ rustc_const_stable( feature = "const_unsafecell_get" , since = "1.32.0" ) ]
2110- #[ cfg_attr ( not ( bootstrap ) , rustc_never_returns_null_ptr) ]
2110+ #[ rustc_never_returns_null_ptr]
21112111 pub const fn get ( & self ) -> * mut T {
21122112 // We can just cast the pointer from `UnsafeCell<T>` to `T` because of
21132113 // #[repr(transparent)]. This exploits std's special status, there is
@@ -2251,7 +2251,7 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
22512251 /// when casting to `&mut T`, and ensure that there are no mutations
22522252 /// or mutable aliases going on when casting to `&T`
22532253 #[ inline]
2254- #[ cfg_attr ( not ( bootstrap ) , rustc_never_returns_null_ptr) ]
2254+ #[ rustc_never_returns_null_ptr]
22552255 pub const fn get ( & self ) -> * mut T {
22562256 self . value . get ( )
22572257 }
0 commit comments