]> git.lizzy.rs Git - rust.git/commitdiff
De-stabilize core::slice::{from_ref, from_ref_mut}.
authorwhitequark <whitequark@whitequark.org>
Wed, 1 Nov 2017 21:56:17 +0000 (21:56 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 1 Nov 2017 22:21:29 +0000 (22:21 +0000)
src/liballoc/lib.rs
src/liballoc/slice.rs
src/libcore/slice/mod.rs

index 0cbfc9e9dacbb3f04d7f9f30f3c89e0d44d9bf4b..f654a6b5ba4713f0ac01637b99f21cc3499180ef 100644 (file)
@@ -93,6 +93,7 @@
 #![feature(dropck_eyepatch)]
 #![feature(exact_size_is_empty)]
 #![feature(fmt_internals)]
+#![feature(from_ref)]
 #![feature(fundamental)]
 #![feature(fused)]
 #![feature(generic_param_attrs)]
index 56450d4e08c993d19c2f935be26755b731a835e6..0c5fec2cf74994379e343a3ac649725b89a257ed 100644 (file)
 pub use core::slice::{RSplit, RSplitMut};
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::slice::{from_raw_parts, from_raw_parts_mut};
-#[stable(feature = "from_ref", since = "1.22.0")]
+#[unstable(feature = "from_ref", issue = "45703")]
 pub use core::slice::{from_ref, from_ref_mut};
 #[unstable(feature = "slice_get_slice", issue = "35729")]
 pub use core::slice::SliceIndex;
index ff9c00cf73d19d9e90b3d6c2e8e42c238326418a..57e5ae28664e0ff2aa0841f9f29516cd41effcbe 100644 (file)
@@ -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)