about summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2018-05-21 17:59:20 +0200
committerStjepan Glavina <stjepang@gmail.com>2018-05-21 18:16:08 +0200
commit26d62f55a40db77c6bca85ad56a44aee898096a5 (patch)
treed4b12cd2c615e29d95a13c11ded399dee582bf44 /src/libcore/slice
parent6e6a4b1957e2407563f3c9005504f95138ffe28f (diff)
downloadrust-26d62f55a40db77c6bca85ad56a44aee898096a5.tar.gz
rust-26d62f55a40db77c6bca85ad56a44aee898096a5.zip
Stabilize feature from_ref
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index 3b19a401859..6278da85e9b 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -3874,7 +3874,7 @@ pub unsafe fn from_raw_parts_mut<'a, T>(p: *mut T, len: usize) -> &'a mut [T] {
 }
 
 /// Converts a reference to T into a slice of length 1 (without copying).
-#[unstable(feature = "from_ref", issue = "45703")]
+#[stable(feature = "from_ref", since = "1.28.0")]
 pub fn from_ref<T>(s: &T) -> &[T] {
     unsafe {
         from_raw_parts(s, 1)
@@ -3882,8 +3882,8 @@ pub fn from_ref<T>(s: &T) -> &[T] {
 }
 
 /// Converts a reference to T into a slice of length 1 (without copying).
-#[unstable(feature = "from_ref", issue = "45703")]
-pub fn from_ref_mut<T>(s: &mut T) -> &mut [T] {
+#[stable(feature = "from_ref", since = "1.28.0")]
+pub fn from_mut<T>(s: &mut T) -> &mut [T] {
     unsafe {
         from_raw_parts_mut(s, 1)
     }