Skip to content

Commit 8c99f3a

Browse files
authored
Rollup merge of rust-lang#97596 - WaffleLapkin:fixup_feature_name, r=compiler-errors
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. I've made a typo in rust-lang#97419
2 parents ccc1261 + 64e413f commit 8c99f3a

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)