Skip to content

Commit 878ac10

Browse files
committed
Use proper issue number for feature(const_slice_from_raw_parts)
1 parent 991a296 commit 878ac10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/slice/raw.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ use crate::ptr;
8383
/// [`NonNull::dangling()`]: ptr::NonNull::dangling
8484
#[inline]
8585
#[stable(feature = "rust1", since = "1.0.0")]
86-
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")]
86+
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")]
8787
pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] {
8888
debug_check_data_len(data, len);
8989

@@ -122,7 +122,7 @@ pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T]
122122
/// [`NonNull::dangling()`]: ptr::NonNull::dangling
123123
#[inline]
124124
#[stable(feature = "rust1", since = "1.0.0")]
125-
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")]
125+
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")]
126126
pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T] {
127127
debug_check_data_len(data as _, len);
128128

@@ -132,8 +132,8 @@ pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a m
132132

133133
// 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
134134
#[cfg(all(not(bootstrap), debug_assertions))]
135-
#[unstable(feature = "const_slice_from_raw_parts", issue = "none")]
136-
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "none")]
135+
#[unstable(feature = "const_slice_from_raw_parts", issue = "67456")]
136+
#[rustc_const_unstable(feature = "const_slice_from_raw_parts", issue = "67456")]
137137
const fn debug_check_data_len<T>(data: *const T, len: usize) {
138138
fn rt_check<T>(data: *const T) {
139139
use crate::intrinsics::is_aligned_and_not_null;

0 commit comments

Comments
 (0)