]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/slice/raw.rs
Rollup merge of #97366 - WaffleLapkin:stabilize_array_slice_from_ref, r=dtolnay
[rust.git] / library / core / src / slice / raw.rs
index fcafcbeafbce65958e1123551519df5808321cfb..bf79214f4235847eab427b6e66a36ad18429918a 100644 (file)
 
 /// 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 = "90206")]
+#[rustc_const_stable(feature = "const_slice_from_ref_shared", since = "1.63.0")]
 #[must_use]
 pub const fn from_ref<T>(s: &T) -> &[T] {
     array::from_ref(s)