File tree 2 files changed +0
-4
lines changed
2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -2959,7 +2959,6 @@ impl<T: Sized> NonNull<T> {
2959
2959
/// some other means.
2960
2960
#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
2961
2961
#[ inline]
2962
- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
2963
2962
pub const fn dangling ( ) -> Self {
2964
2963
unsafe {
2965
2964
let ptr = mem:: align_of :: < T > ( ) as * mut T ;
@@ -3023,7 +3022,6 @@ impl<T: ?Sized> NonNull<T> {
3023
3022
/// Cast to a pointer of another type
3024
3023
#[ stable( feature = "nonnull_cast" , since = "1.27.0" ) ]
3025
3024
#[ inline]
3026
- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
3027
3025
pub const fn cast < U > ( self ) -> NonNull < U > {
3028
3026
unsafe {
3029
3027
NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
Original file line number Diff line number Diff line change 1
1
// run-pass
2
2
3
- #![ feature( const_ptr_nonnull) ]
4
-
5
3
use std:: ptr:: NonNull ;
6
4
7
5
const DANGLING : NonNull < u32 > = NonNull :: dangling ( ) ;
You can’t perform that action at this time.
0 commit comments