File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2913,7 +2913,7 @@ impl<T: Sized> NonNull<T> {
2913
2913
/// some other means.
2914
2914
#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
2915
2915
#[ inline]
2916
- #[ cfg_attr ( not ( stage0 ) , rustc_const_unstable( feature = "const_ptr_nonnull" ) ) ]
2916
+ #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
2917
2917
pub const fn dangling ( ) -> Self {
2918
2918
unsafe {
2919
2919
let ptr = mem:: align_of :: < T > ( ) as * mut T ;
@@ -2977,7 +2977,7 @@ impl<T: ?Sized> NonNull<T> {
2977
2977
/// Cast to a pointer of another type
2978
2978
#[ stable( feature = "nonnull_cast" , since = "1.27.0" ) ]
2979
2979
#[ inline]
2980
- #[ cfg_attr ( not ( stage0 ) , rustc_const_unstable( feature = "const_ptr_nonnull" ) ) ]
2980
+ #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
2981
2981
pub const fn cast < U > ( self ) -> NonNull < U > {
2982
2982
unsafe {
2983
2983
NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
You can’t perform that action at this time.
0 commit comments