diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-10-23 20:59:15 +0300 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-10-23 20:59:15 +0300 |
| commit | 27d69611347142cc5f103df0923b46d670e75739 (patch) | |
| tree | a7bf636fe4510afa3f196d188e65797a7846bddc /library/core/src/slice/raw.rs | |
| parent | a288bf6afbf7f98fd357b971b23ef09a66aaa8c0 (diff) | |
| download | rust-27d69611347142cc5f103df0923b46d670e75739.tar.gz rust-27d69611347142cc5f103df0923b46d670e75739.zip | |
Fill tracking issue for `const_slice_from_ref` and `const_array_from_ref`
Diffstat (limited to 'library/core/src/slice/raw.rs')
| -rw-r--r-- | library/core/src/slice/raw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/raw.rs b/library/core/src/slice/raw.rs index bcf3d9ba48e..ad38aaf9f83 100644 --- a/library/core/src/slice/raw.rs +++ b/library/core/src/slice/raw.rs @@ -138,14 +138,14 @@ pub unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T] /// Converts a reference to T into a slice of length 1 (without copying). #[stable(feature = "from_ref", since = "1.28.0")] -#[rustc_const_unstable(feature = "const_slice_from_ref", issue = "none")] +#[rustc_const_unstable(feature = "const_slice_from_ref", issue = "90206")] pub const fn from_ref<T>(s: &T) -> &[T] { array::from_ref(s) } /// Converts a reference to T into a slice of length 1 (without copying). #[stable(feature = "from_ref", since = "1.28.0")] -#[rustc_const_unstable(feature = "const_slice_from_ref", issue = "none")] +#[rustc_const_unstable(feature = "const_slice_from_ref", issue = "90206")] pub const fn from_mut<T>(s: &mut T) -> &mut [T] { array::from_mut(s) } |
