De-stabilize core::slice::{from_ref, from_ref_mut}.
This commit is contained in:
parent
8431811728
commit
1cc88be2eb
3 changed files with 4 additions and 3 deletions
|
@ -93,6 +93,7 @@
|
||||||
#![feature(dropck_eyepatch)]
|
#![feature(dropck_eyepatch)]
|
||||||
#![feature(exact_size_is_empty)]
|
#![feature(exact_size_is_empty)]
|
||||||
#![feature(fmt_internals)]
|
#![feature(fmt_internals)]
|
||||||
|
#![feature(from_ref)]
|
||||||
#![feature(fundamental)]
|
#![feature(fundamental)]
|
||||||
#![feature(fused)]
|
#![feature(fused)]
|
||||||
#![feature(generic_param_attrs)]
|
#![feature(generic_param_attrs)]
|
||||||
|
|
|
@ -119,7 +119,7 @@ pub use core::slice::{SplitN, RSplitN, SplitNMut, RSplitNMut};
|
||||||
pub use core::slice::{RSplit, RSplitMut};
|
pub use core::slice::{RSplit, RSplitMut};
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub use core::slice::{from_raw_parts, from_raw_parts_mut};
|
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};
|
pub use core::slice::{from_ref, from_ref_mut};
|
||||||
#[unstable(feature = "slice_get_slice", issue = "35729")]
|
#[unstable(feature = "slice_get_slice", issue = "35729")]
|
||||||
pub use core::slice::SliceIndex;
|
pub use core::slice::SliceIndex;
|
||||||
|
|
|
@ -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).
|
/// 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] {
|
pub fn from_ref<T>(s: &T) -> &[T] {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_raw_parts(s, 1)
|
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).
|
/// 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] {
|
pub fn from_ref_mut<T>(s: &mut T) -> &mut [T] {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_raw_parts_mut(s, 1)
|
from_raw_parts_mut(s, 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue