File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ pub const fn from_mut<T>(s: &mut T) -> &mut [T] {
213
213
///
214
214
/// [valid]: ptr#safety
215
215
#[ unstable( feature = "slice_from_ptr_range" , issue = "89792" ) ]
216
- #[ rustc_const_unstable( feature = "slice_from_ptr_range_const " , issue = "89792" ) ]
216
+ #[ rustc_const_unstable( feature = "const_slice_from_ptr_range " , issue = "89792" ) ]
217
217
pub const unsafe fn from_ptr_range < ' a , T > ( range : Range < * const T > ) -> & ' a [ T ] {
218
218
// SAFETY: the caller must uphold the safety contract for `from_ptr_range`.
219
219
unsafe { from_raw_parts ( range. start , range. end . sub_ptr ( range. start ) ) }
Original file line number Diff line number Diff line change 2
2
#![ feature(
3
3
const_slice_from_raw_parts,
4
4
slice_from_ptr_range,
5
- slice_from_ptr_range_const ,
5
+ const_slice_from_ptr_range ,
6
6
pointer_byte_offsets,
7
7
const_pointer_byte_offsets
8
8
) ]
Original file line number Diff line number Diff line change 1
1
#![ feature(
2
2
const_slice_from_raw_parts,
3
3
slice_from_ptr_range,
4
- slice_from_ptr_range_const ,
4
+ const_slice_from_ptr_range ,
5
5
pointer_byte_offsets,
6
6
const_pointer_byte_offsets
7
7
) ]
You can’t perform that action at this time.
0 commit comments