@@ -137,7 +137,7 @@ impl<T: Sized> NonNull<T> {
137
137
#[ inline]
138
138
#[ must_use]
139
139
#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
140
- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
140
+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
141
141
pub const unsafe fn as_uninit_ref < ' a > ( self ) -> & ' a MaybeUninit < T > {
142
142
// SAFETY: the caller must guarantee that `self` meets all the
143
143
// requirements for a reference.
@@ -161,7 +161,7 @@ impl<T: Sized> NonNull<T> {
161
161
#[ inline]
162
162
#[ must_use]
163
163
#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
164
- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
164
+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
165
165
pub const unsafe fn as_uninit_mut < ' a > ( self ) -> & ' a mut MaybeUninit < T > {
166
166
// SAFETY: the caller must guarantee that `self` meets all the
167
167
// requirements for a reference.
@@ -385,7 +385,7 @@ impl<T: ?Sized> NonNull<T> {
385
385
#[ rustc_const_stable( feature = "const_nonnull_as_ref" , since = "1.73.0" ) ]
386
386
#[ must_use]
387
387
#[ inline( always) ]
388
- #[ kani :: requires( ub_checks:: can_dereference( self . as_ptr( ) as * const ( ) ) ) ] // Ensure input is convertible to a reference
388
+ #[ requires( ub_checks:: can_dereference( self . as_ptr( ) as * const ( ) ) ) ] // Ensure input is convertible to a reference
389
389
#[ ensures( |result: &&T | core:: ptr:: eq( * result, self . as_ptr( ) ) ) ] // Ensure returned reference matches pointer
390
390
pub const unsafe fn as_ref < ' a > ( & self ) -> & ' a T {
391
391
// SAFETY: the caller must guarantee that `self` meets all the
@@ -425,7 +425,7 @@ impl<T: ?Sized> NonNull<T> {
425
425
#[ rustc_const_stable( feature = "const_ptr_as_ref" , since = "1.83.0" ) ]
426
426
#[ must_use]
427
427
#[ inline( always) ]
428
- #[ kani :: requires( ub_checks:: can_dereference( self . as_ptr( ) as * const ( ) ) ) ]
428
+ #[ requires( ub_checks:: can_dereference( self . as_ptr( ) as * const ( ) ) ) ]
429
429
// verify result (a mutable reference) is still associated with the same memory address as the raw pointer stored in self
430
430
#[ ensures( |result: &&mut T | core:: ptr:: eq( * result, self . as_ptr( ) ) ) ]
431
431
pub const unsafe fn as_mut < ' a > ( & mut self ) -> & ' a mut T {
0 commit comments