Skip to content

Commit a95dafe

Browse files
authored
provide various trait implementations for arrays up 44 elements
fixes rust-lang#51192
1 parent 4ecf12b commit a95dafe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/array.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ array_impls! {
260260
0 1 2 3 4 5 6 7 8 9
261261
10 11 12 13 14 15 16 17 18 19
262262
20 21 22 23 24 25 26 27 28 29
263-
30 31 32
263+
30 31 32 33 34 35 36 37 38 39
264+
40 41 42 43 44
264265
}
265266

266267
// The Default impls cannot be generated using the array_impls! macro because
@@ -284,4 +285,4 @@ macro_rules! array_impl_default {
284285
};
285286
}
286287

287-
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}
288+
array_impl_default!{44, 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 T T T T T T T T T T T T}

0 commit comments

Comments
 (0)