File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 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> {
29592959 /// some other means.
29602960 #[ stable( feature = "nonnull" , since = "1.25.0" ) ]
29612961 #[ inline]
2962- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
29632962 pub const fn dangling ( ) -> Self {
29642963 unsafe {
29652964 let ptr = mem:: align_of :: < T > ( ) as * mut T ;
@@ -3023,7 +3022,6 @@ impl<T: ?Sized> NonNull<T> {
30233022 /// Cast to a pointer of another type
30243023 #[ stable( feature = "nonnull_cast" , since = "1.27.0" ) ]
30253024 #[ inline]
3026- #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
30273025 pub const fn cast < U > ( self ) -> NonNull < U > {
30283026 unsafe {
30293027 NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
Original file line number Diff line number Diff line change 11// run-pass
22
3- #![ feature( const_ptr_nonnull) ]
4-
53use std:: ptr:: NonNull ;
64
75const DANGLING : NonNull < u32 > = NonNull :: dangling ( ) ;
You can’t perform that action at this time.
0 commit comments