We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cac94e commit 64e413fCopy full SHA for 64e413f
core/src/slice/raw.rs
@@ -264,7 +264,7 @@ pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
264
///
265
/// [valid]: ptr#safety
266
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
267
-#[rustc_const_unstable(feature = "slice_from_mut_ptr_range_const", issue = "89792")]
+#[rustc_const_unstable(feature = "const_slice_from_mut_ptr_range", issue = "89792")]
268
pub const unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T] {
269
// SAFETY: the caller must uphold the safety contract for `from_mut_ptr_range`.
270
unsafe { from_raw_parts_mut(range.start, range.end.sub_ptr(range.start)) }
0 commit comments