about summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2017-11-01 21:56:17 +0000
committerwhitequark <whitequark@whitequark.org>2017-11-01 22:21:29 +0000
commit1cc88be2ebc67e1f0e7ff57c12dec45ef9abc2ae (patch)
tree6521037d688b634702bf670a4c9b4f943e432f5a /src/libcore/slice
parent843181172892af2fdb7755e77c39227aba252c83 (diff)
downloadrust-1cc88be2ebc67e1f0e7ff57c12dec45ef9abc2ae.tar.gz
rust-1cc88be2ebc67e1f0e7ff57c12dec45ef9abc2ae.zip
De-stabilize core::slice::{from_ref, from_ref_mut}.
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index ff9c00cf73d..57e5ae28664 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -2451,7 +2451,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).
-#[stable(feature = "from_ref", since = "1.22.0")]
+#[unstable(feature = "from_ref", issue = "45703")]
 pub fn from_ref<T>(s: &T) -> &[T] {
     unsafe {
         from_raw_parts(s, 1)
@@ -2459,7 +2459,7 @@ pub fn from_ref<T>(s: &T) -> &[T] {
 }
 
 /// Converts a reference to T into a slice of length 1 (without copying).
-#[stable(feature = "from_ref", since = "1.22.0")]
+#[unstable(feature = "from_ref", issue = "45703")]
 pub fn from_ref_mut<T>(s: &mut T) -> &mut [T] {
     unsafe {
         from_raw_parts_mut(s, 1)