about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-05-18 12:05:26 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2022-05-18 12:29:35 -0400
commit32fdc6b2072c7b4c5f1111ce1e8d2ed115525833 (patch)
treee274910ef5a8fa0f75cd5d898ed77635727a793f
parentc64c29f8d177774139869948ae95d05cb1590d09 (diff)
downloadrust-32fdc6b2072c7b4c5f1111ce1e8d2ed115525833.tar.gz
rust-32fdc6b2072c7b4c5f1111ce1e8d2ed115525833.zip
Stage-step cfgs
-rw-r--r--library/core/src/lib.rs1
-rw-r--r--library/core/src/slice/mod.rs1
-rw-r--r--library/core/tests/slice.rs2
3 files changed, 0 insertions, 4 deletions
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index d1936b6b566..7b04e4423b7 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -171,7 +171,6 @@
 #![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)]
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index a226dea54a4..7ac7573b43c 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -4016,7 +4016,6 @@ impl<T> [T] {
     }
 }
 
-#[cfg(not(bootstrap))]
 impl<T, const N: usize> [[T; N]] {
     /// Takes a `&[[T; N]]`, and flattens it to a `&[T]`.
     ///
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
index 872786ed1bd..5751a91721d 100644
--- a/library/core/tests/slice.rs
+++ b/library/core/tests/slice.rs
@@ -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][..];