about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoman Proskuryakov <humbug@deeptown.org>2020-07-05 16:07:09 +0300
committerRoman Proskuryakov <humbug@deeptown.org>2020-07-05 16:07:09 +0300
commit4ad40a8737ab4ffaf6352ec4560fd86cb0b4ade8 (patch)
tree347d11604396a6ab6db2c779250b74a338055b7e
parenteff62069ad602090e8d27b83cffd9e77479ed4be (diff)
downloadrust-4ad40a8737ab4ffaf6352ec4560fd86cb0b4ade8.tar.gz
rust-4ad40a8737ab4ffaf6352ec4560fd86cb0b4ade8.zip
Remove LengthAtMost32
-rw-r--r--src/liballoc/lib.rs1
-rw-r--r--src/libcore/array/mod.rs25
2 files changed, 0 insertions, 26 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 5f18fe8bfab..1d3e255eaae 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -84,7 +84,6 @@
 #![feature(cfg_target_has_atomic)]
 #![feature(coerce_unsized)]
 #![feature(const_btree_new)]
-#![feature(const_generic_impls_guard)]
 #![feature(const_generics)]
 #![feature(const_in_array_repeat_expressions)]
 #![cfg_attr(bootstrap, feature(const_if_match))]
diff --git a/src/libcore/array/mod.rs b/src/libcore/array/mod.rs
index c5e7f659485..c0bf3833b9c 100644
--- a/src/libcore/array/mod.rs
+++ b/src/libcore/array/mod.rs
@@ -342,31 +342,6 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
     }
 }
 
-/// Implemented for lengths where trait impls are allowed on arrays in core/std
-#[rustc_on_unimplemented(message = "arrays only have std trait implementations for lengths 0..=32")]
-#[unstable(
-    feature = "const_generic_impls_guard",
-    issue = "none",
-    reason = "will never be stable, just a temporary step until const generics are stable"
-)]
-pub trait LengthAtMost32 {}
-
-macro_rules! array_impls {
-    ($($N:literal)+) => {
-        $(
-            #[unstable(feature = "const_generic_impls_guard", issue = "none")]
-            impl<T> LengthAtMost32 for [T; $N] {}
-        )+
-    }
-}
-
-array_impls! {
-     0  1  2  3  4  5  6  7  8  9
-    10 11 12 13 14 15 16 17 18 19
-    20 21 22 23 24 25 26 27 28 29
-    30 31 32
-}
-
 // The Default impls cannot be generated using the array_impls! macro because
 // they require array literals.