File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 9999#![ feature( lang_items) ]
100100#![ feature( libc) ]
101101#![ feature( needs_allocator) ]
102- #![ feature( nonnull_cast) ]
103102#![ feature( nonzero) ]
104103#![ feature( optin_builtin_traits) ]
105104#![ feature( pattern) ]
Original file line number Diff line number Diff line change @@ -2742,7 +2742,7 @@ impl<T: ?Sized> NonNull<T> {
27422742 }
27432743
27442744 /// Cast to a pointer of another type
2745- #[ unstable ( feature = "nonnull_cast" , issue = "47653 " ) ]
2745+ #[ stable ( feature = "nonnull_cast" , since = "1.27.0 " ) ]
27462746 pub fn cast < U > ( self ) -> NonNull < U > {
27472747 unsafe {
27482748 NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
Original file line number Diff line number Diff line change 275275#![ feature( macro_reexport) ]
276276#![ feature( macro_vis_matcher) ]
277277#![ feature( needs_panic_runtime) ]
278- #![ feature( nonnull_cast) ]
279278#![ feature( exhaustive_patterns) ]
280279#![ feature( nonzero) ]
281280#![ feature( num_bits_bytes) ]
Original file line number Diff line number Diff line change 1313// Ideally this would be revised to use no_std, but for now it serves
1414// well enough to reproduce (and illustrate) the bug from #16687.
1515
16- #![ feature( heap_api, allocator_api, nonnull_cast ) ]
16+ #![ feature( heap_api, allocator_api) ]
1717
1818use std:: alloc:: { Global , Alloc , Layout } ;
1919use std:: ptr:: { self , NonNull } ;
You can’t perform that action at this time.
0 commit comments