File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,6 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
354
354
}
355
355
356
356
/// This module implements `Default` for arrays.
357
- //#[cfg(not(bootstrap))]
358
357
mod default_impls {
359
358
// A trait implemented by all arrays which are either empty or contain a type implementing `Default`.
360
359
#[ unstable(
@@ -405,29 +404,6 @@ mod default_impls {
405
404
}
406
405
}
407
406
408
- /*#[cfg(bootstrap)]
409
- mod default_impls {
410
- macro_rules! array_impl_default {
411
- {$n:expr, $t:ident $($ts:ident)*} => {
412
- #[stable(since = "1.4.0", feature = "array_default")]
413
- impl<T> Default for [T; $n] where T: Default {
414
- fn default() -> [T; $n] {
415
- [$t::default(), $($ts::default()),*]
416
- }
417
- }
418
- array_impl_default!{($n - 1), $($ts)*}
419
- };
420
- {$n:expr,} => {
421
- #[stable(since = "1.4.0", feature = "array_default")]
422
- impl<T> Default for [T; $n] {
423
- fn default() -> [T; $n] { [] }
424
- }
425
- };
426
- }
427
-
428
- array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}
429
- }*/
430
-
431
407
#[ lang = "array" ]
432
408
impl < T , const N : usize > [ T ; N ] {
433
409
/// Returns an array of the same size as `self`, with function `f` applied to each element
You can’t perform that action at this time.
0 commit comments