summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-30 21:01:05 +0000
committerbors <bors@rust-lang.org>2018-06-30 21:01:05 +0000
commit48af7714d81bfa9a30d2f0175968ca5232fa23b5 (patch)
treef0ec71c2c5f643d95dc69df02cbbc5b8cb72d11a /src/libcore/slice
parent74c89b023020e4c6b04acfc877a115c95ec7747b (diff)
parent3d6877496866472e1e9af9495d6989ee7ae866ef (diff)
downloadrust-48af7714d81bfa9a30d2f0175968ca5232fa23b5.tar.gz
rust-48af7714d81bfa9a30d2f0175968ca5232fa23b5.zip
Auto merge of #51717 - Mark-Simulacrum:snap, r=alexcrichton
Bootstrap from 1.28.0 beta
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/mod.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index 0cbdbc4ad66..87b7ae39cfd 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -1708,7 +1708,6 @@ impl<T> [T] {
     }
 
     /// Function to calculate lenghts of the middle and trailing slice for `align_to{,_mut}`.
-    #[cfg(not(stage0))]
     fn align_to_offsets<U>(&self) -> (usize, usize) {
         // What we gonna do about `rest` is figure out what multiple of `U`s we can put in a
         // lowest number of `T`s. And how many `T`s we need for each such "multiple".
@@ -1798,7 +1797,6 @@ impl<T> [T] {
     /// }
     /// ```
     #[unstable(feature = "slice_align_to", issue = "44488")]
-    #[cfg(not(stage0))]
     pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T]) {
         // Note that most of this function will be constant-evaluated,
         if ::mem::size_of::<U>() == 0 || ::mem::size_of::<T>() == 0 {
@@ -1851,7 +1849,6 @@ impl<T> [T] {
     /// }
     /// ```
     #[unstable(feature = "slice_align_to", issue = "44488")]
-    #[cfg(not(stage0))]
     pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T]) {
         // Note that most of this function will be constant-evaluated,
         if ::mem::size_of::<U>() == 0 || ::mem::size_of::<T>() == 0 {