Skip to content

Commit 4ad40a8

Browse files
committed
Remove LengthAtMost32
1 parent eff6206 commit 4ad40a8

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/liballoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
#![feature(cfg_target_has_atomic)]
8585
#![feature(coerce_unsized)]
8686
#![feature(const_btree_new)]
87-
#![feature(const_generic_impls_guard)]
8887
#![feature(const_generics)]
8988
#![feature(const_in_array_repeat_expressions)]
9089
#![cfg_attr(bootstrap, feature(const_if_match))]

src/libcore/array/mod.rs

-25
Original file line numberDiff line numberDiff line change
@@ -342,31 +342,6 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
342342
}
343343
}
344344

345-
/// Implemented for lengths where trait impls are allowed on arrays in core/std
346-
#[rustc_on_unimplemented(message = "arrays only have std trait implementations for lengths 0..=32")]
347-
#[unstable(
348-
feature = "const_generic_impls_guard",
349-
issue = "none",
350-
reason = "will never be stable, just a temporary step until const generics are stable"
351-
)]
352-
pub trait LengthAtMost32 {}
353-
354-
macro_rules! array_impls {
355-
($($N:literal)+) => {
356-
$(
357-
#[unstable(feature = "const_generic_impls_guard", issue = "none")]
358-
impl<T> LengthAtMost32 for [T; $N] {}
359-
)+
360-
}
361-
}
362-
363-
array_impls! {
364-
0 1 2 3 4 5 6 7 8 9
365-
10 11 12 13 14 15 16 17 18 19
366-
20 21 22 23 24 25 26 27 28 29
367-
30 31 32
368-
}
369-
370345
// The Default impls cannot be generated using the array_impls! macro because
371346
// they require array literals.
372347

0 commit comments

Comments
 (0)