diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-10-29 22:45:10 +0300 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-10-29 22:45:10 +0300 |
| commit | 878ac10fe13761664da2d205c64e2a398f469601 (patch) | |
| tree | 3a749e0025f0edcacacca1f088369bf085ba24ed | |
| parent | 991a296ce7617443c021c164644e2791890849bc (diff) | |
| download | rust-878ac10fe13761664da2d205c64e2a398f469601.tar.gz rust-878ac10fe13761664da2d205c64e2a398f469601.zip | |
Use proper issue number for `feature(const_slice_from_raw_parts)`
| -rw-r--r-- | library/core/src/slice/raw.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/slice/raw.rs b/library/core/src/slice/raw.rs index 6653c998fa2..edae555206f 100644 --- a/library/core/src/slice/raw.rs +++ b/library/core/src/slice/raw.rs @@ -83,7 +83,7 @@ use crate::ptr; /// [`NonNull::dangling()`]: ptr::NonNull::dangling #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")] +#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")] pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] { debug_check_data_len(data, len); @@ -122,7 +122,7 @@ pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] /// [`NonNull::dangling()`]: ptr::NonNull::dangling #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")] +#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")] pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T] { debug_check_data_len(data as _, len); @@ -132,8 +132,8 @@ pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a m // In debug builds checks that `data` pointer is aligned and non-null and that slice with given `len` would cover less than half the address space #[cfg(all(not(bootstrap), debug_assertions))] -#[unstable(feature = "const_slice_from_raw_parts", issue = "none")] -#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")] +#[unstable(feature = "const_slice_from_raw_parts", issue = "67456")] +#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")] const fn debug_check_data_len<T>(data: *const T, len: usize) { fn rt_check<T>(data: *const T) { use crate::intrinsics::is_aligned_and_not_null; |
