File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 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] {
354354}
355355
356356/// This module implements `Default` for arrays.
357- //#[cfg(not(bootstrap))]
358357mod default_impls {
359358 // A trait implemented by all arrays which are either empty or contain a type implementing `Default`.
360359 #[ unstable(
@@ -405,29 +404,6 @@ mod default_impls {
405404 }
406405}
407406
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-
431407#[ lang = "array" ]
432408impl < T , const N : usize > [ T ; N ] {
433409 /// 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