]> git.lizzy.rs Git - rust.git/commitdiff
Stage-step cfgs
authorMark Rousskov <mark.simulacrum@gmail.com>
Wed, 18 May 2022 16:05:26 +0000 (12:05 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Wed, 18 May 2022 16:29:35 +0000 (12:29 -0400)
library/core/src/lib.rs
library/core/src/slice/mod.rs
library/core/tests/slice.rs

index d1936b6b566c1a3f1feaabb0ac16d4971602220e..7b04e4423b782d0eea4f0623c0b2d355f6bb0be0 100644 (file)
 #![feature(const_precise_live_drops)]
 #![feature(const_refs_to_cell)]
 #![feature(decl_macro)]
-#![cfg_attr(bootstrap, feature(derive_default_enum))]
 #![feature(deprecated_suggestion)]
 #![feature(doc_cfg)]
 #![feature(doc_notable_trait)]
index a226dea54a4f2ab228512e666fb4abf7210cb742..7ac7573b43c82d4d00a530d0eed8f5a345713f4b 100644 (file)
@@ -4016,7 +4016,6 @@ pub fn take_last_mut<'a>(self: &mut &'a mut Self) -> Option<&'a mut T> {
     }
 }
 
-#[cfg(not(bootstrap))]
 impl<T, const N: usize> [[T; N]] {
     /// Takes a `&[[T; N]]`, and flattens it to a `&[T]`.
     ///
index 872786ed1bd8083427ef1b4f2f3719e5a51947ca..5751a91721d1fcee6c24caec5b13b5af5865fb56 100644 (file)
@@ -2518,7 +2518,6 @@ fn test_slice_from_ptr_range() {
 }
 
 #[test]
-#[cfg(not(bootstrap))]
 #[should_panic = "slice len overflow"]
 fn test_flatten_size_overflow() {
     let x = &[[(); usize::MAX]; 2][..];
@@ -2526,7 +2525,6 @@ fn test_flatten_size_overflow() {
 }
 
 #[test]
-#[cfg(not(bootstrap))]
 #[should_panic = "slice len overflow"]
 fn test_flatten_mut_size_overflow() {
     let x = &mut [[(); usize::MAX]; 2][..];