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 @@ -2970,7 +2970,6 @@ impl<T: Sized> NonNull<T> {
2970
2970
/// some other means.
2971
2971
#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
2972
2972
#[ inline]
2973
- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
2974
2973
pub const fn dangling ( ) -> Self {
2975
2974
unsafe {
2976
2975
let ptr = mem:: align_of :: < T > ( ) as * mut T ;
@@ -3034,7 +3033,6 @@ impl<T: ?Sized> NonNull<T> {
3034
3033
/// Cast to a pointer of another type
3035
3034
#[ stable( feature = "nonnull_cast" , since = "1.27.0" ) ]
3036
3035
#[ inline]
3037
- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
3038
3036
pub const fn cast < U > ( self ) -> NonNull < U > {
3039
3037
unsafe {
3040
3038
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