File tree 2 files changed +0
-26
lines changed
2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 84
84
#![ feature( cfg_target_has_atomic) ]
85
85
#![ feature( coerce_unsized) ]
86
86
#![ feature( const_btree_new) ]
87
- #![ feature( const_generic_impls_guard) ]
88
87
#![ feature( const_generics) ]
89
88
#![ feature( const_in_array_repeat_expressions) ]
90
89
#![ cfg_attr( bootstrap, feature( const_if_match) ) ]
Original file line number Diff line number Diff line change @@ -342,31 +342,6 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
342
342
}
343
343
}
344
344
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
-
370
345
// The Default impls cannot be generated using the array_impls! macro because
371
346
// they require array literals.
372
347
You can’t perform that action at this time.
0 commit comments