We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0032f06 commit 805571eCopy full SHA for 805571e
core/src/slice/raw.rs
@@ -213,7 +213,7 @@ pub const fn from_mut<T>(s: &mut T) -> &mut [T] {
213
///
214
/// [valid]: ptr#safety
215
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
216
-#[rustc_const_unstable(feature = "slice_from_ptr_range_const", issue = "89792")]
+#[rustc_const_unstable(feature = "const_slice_from_ptr_range", issue = "89792")]
217
pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
218
// SAFETY: the caller must uphold the safety contract for `from_ptr_range`.
219
unsafe { from_raw_parts(range.start, range.end.sub_ptr(range.start)) }
0 commit comments