File tree 4 files changed +2
-4
lines changed
4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 99
99
#![ feature( lang_items) ]
100
100
#![ feature( libc) ]
101
101
#![ feature( needs_allocator) ]
102
- #![ feature( nonnull_cast) ]
103
102
#![ feature( nonzero) ]
104
103
#![ feature( optin_builtin_traits) ]
105
104
#![ feature( pattern) ]
Original file line number Diff line number Diff line change @@ -2742,7 +2742,7 @@ impl<T: ?Sized> NonNull<T> {
2742
2742
}
2743
2743
2744
2744
/// Cast to a pointer of another type
2745
- #[ unstable ( feature = "nonnull_cast" , issue = "47653 " ) ]
2745
+ #[ stable ( feature = "nonnull_cast" , since = "1.27.0 " ) ]
2746
2746
pub fn cast < U > ( self ) -> NonNull < U > {
2747
2747
unsafe {
2748
2748
NonNull :: new_unchecked ( self . as_ptr ( ) as * mut U )
Original file line number Diff line number Diff line change 275
275
#![ feature( macro_reexport) ]
276
276
#![ feature( macro_vis_matcher) ]
277
277
#![ feature( needs_panic_runtime) ]
278
- #![ feature( nonnull_cast) ]
279
278
#![ feature( exhaustive_patterns) ]
280
279
#![ feature( nonzero) ]
281
280
#![ feature( num_bits_bytes) ]
Original file line number Diff line number Diff line change 13
13
// Ideally this would be revised to use no_std, but for now it serves
14
14
// well enough to reproduce (and illustrate) the bug from #16687.
15
15
16
- #![ feature( heap_api, allocator_api, nonnull_cast ) ]
16
+ #![ feature( heap_api, allocator_api) ]
17
17
18
18
use std:: alloc:: { Global , Alloc , Layout } ;
19
19
use std:: ptr:: { self , NonNull } ;
You can’t perform that action at this time.
0 commit comments