Skip to content

Commit 2319828

Browse files
committed
add slice_from_ptr_range tracking issue
1 parent eba364f commit 2319828

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/core/src/slice/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub use raw::{from_raw_parts, from_raw_parts_mut};
6969
#[stable(feature = "from_ref", since = "1.28.0")]
7070
pub use raw::{from_mut, from_ref};
7171

72-
#[unstable(feature = "slice_from_ptr_range", issue = "none")]
72+
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
7373
pub use raw::{from_mut_ptr_range, from_ptr_range};
7474

7575
// This function is public only because there is no other way to unit test heapsort.

library/core/src/slice/raw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ pub const fn from_mut<T>(s: &mut T) -> &mut [T] {
231231
/// ```
232232
///
233233
/// [valid]: ptr#safety
234-
#[unstable(feature = "slice_from_ptr_range", issue = "none")]
234+
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
235235
pub unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
236236
// SAFETY: the caller must uphold the safety contract for `from_ptr_range`.
237237
unsafe { from_raw_parts(range.start, range.end.offset_from(range.start) as usize) }
@@ -280,7 +280,7 @@ pub unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] {
280280
/// ```
281281
///
282282
/// [valid]: ptr#safety
283-
#[unstable(feature = "slice_from_ptr_range", issue = "none")]
283+
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
284284
pub unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T] {
285285
// SAFETY: the caller must uphold the safety contract for `from_mut_ptr_range`.
286286
unsafe { from_raw_parts_mut(range.start, range.end.offset_from(range.start) as usize) }

0 commit comments

Comments
 (0)