Skip to content

Commit 805571e

Browse files
committed
Rename slice_from_ptr_range_const -> const_slice_from_ptr_range
This is in line with other `const fn` features.
1 parent 0032f06 commit 805571e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: core/src/slice/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ pub const fn from_mut<T>(s: &mut T) -> &mut [T] {
213213
///
214214
/// [valid]: ptr#safety
215215
#[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")]
217217
pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
218218
// SAFETY: the caller must uphold the safety contract for `from_ptr_range`.
219219
unsafe { from_raw_parts(range.start, range.end.sub_ptr(range.start)) }

0 commit comments

Comments
 (0)