diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-23 13:48:21 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-23 13:48:21 +0200 |
| commit | ed97b421059d25a86b2f947734a8ae366b68f473 (patch) | |
| tree | 2e36b564c55af67e7365a458c47e5f53e8a59fa3 | |
| parent | 179f63dafcf9463b48d82e8698a844e18bf94370 (diff) | |
| download | rust-ed97b421059d25a86b2f947734a8ae366b68f473.tar.gz rust-ed97b421059d25a86b2f947734a8ae366b68f473.zip | |
add tracking issue
| -rw-r--r-- | library/core/src/array/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 5730074bf27..966272ca115 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -20,14 +20,14 @@ mod iter; pub use iter::IntoIter; /// Converts a reference to `T` into a reference to an array of length 1 (without copying). -#[unstable(feature = "array_from_ref", issue = "none")] +#[unstable(feature = "array_from_ref", issue = "77101")] pub fn from_ref<T>(s: &T) -> &[T; 1] { // SAFETY: Converting `&T` to `&[T; 1]` is sound. unsafe { &*(s as *const T).cast::<[T; 1]>() } } /// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying). -#[unstable(feature = "array_from_ref", issue = "none")] +#[unstable(feature = "array_from_ref", issue = "77101")] pub fn from_mut<T>(s: &mut T) -> &mut [T; 1] { // SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound. unsafe { &mut *(s as *mut T).cast::<[T; 1]>() } |
