about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorWaffle <waffle.lapkin@gmail.com>2021-04-11 22:06:32 +0300
committerWaffle <waffle.lapkin@gmail.com>2021-04-11 22:06:32 +0300
commit740b0529fb23a69855447a9916bbb41d34918460 (patch)
treebf49e14dabd2250490ebc418197576c7a951ce41 /library/core/src/array
parent010c2368fa33ef08df3080228498db8d2ba5a93b (diff)
downloadrust-740b0529fb23a69855447a9916bbb41d34918460.tar.gz
rust-740b0529fb23a69855447a9916bbb41d34918460.zip
stabilize core::array::{from_ref,from_mut}
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 8f52985d1df..b20bed78789 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -23,14 +23,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 = "77101")]
+#[stable(feature = "array_from_ref", since = "1.53.0")]
 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 = "77101")]
+#[stable(feature = "array_from_ref", since = "1.53.0")]
 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]>() }