Skip to content

Commit 64e413f

Browse files
committed
Fixup feature name to be more consistent with others
`slice_from_mut_ptr_range_const` -> `const_slice_from_mut_ptr_range`, we usually have `const` in the front.
1 parent 4cac94e commit 64e413f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/slice/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
264264
///
265265
/// [valid]: ptr#safety
266266
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
267-
#[rustc_const_unstable(feature = "slice_from_mut_ptr_range_const", issue = "89792")]
267+
#[rustc_const_unstable(feature = "const_slice_from_mut_ptr_range", issue = "89792")]
268268
pub const unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T] {
269269
// SAFETY: the caller must uphold the safety contract for `from_mut_ptr_range`.
270270
unsafe { from_raw_parts_mut(range.start, range.end.sub_ptr(range.start)) }

0 commit comments

Comments
 (0)