File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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> {
29132913 /// some other means.
29142914 #[ stable( feature = "nonnull" , since = "1.25.0" ) ]
29152915 #[ inline]
2916- #[ cfg_attr ( not ( stage0 ) , rustc_const_unstable( feature = "const_ptr_nonnull" ) ) ]
2916+ #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
29172917 pub const fn dangling ( ) -> Self {
29182918 unsafe {
29192919 let ptr = mem:: align_of :: < T > ( ) as * mut T ;
@@ -2977,7 +2977,7 @@ impl<T: ?Sized> NonNull<T> {
29772977 /// Cast to a pointer of another type
29782978 #[ stable( feature = "nonnull_cast" , since = "1.27.0" ) ]
29792979 #[ inline]
2980- #[ cfg_attr ( not ( stage0 ) , rustc_const_unstable( feature = "const_ptr_nonnull" ) ) ]
2980+ #[ rustc_const_unstable( feature = "const_ptr_nonnull" ) ]
29812981 pub const fn cast < U > ( self ) -> NonNull < U > {
29822982 unsafe {
29832983 NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
You can’t perform that action at this time.
0 commit comments