Skip to content

Commit 93fa023

Browse files
committed
Fix outdated comment next to array_impl_default
The comment has become outdated as the array_impl macro has been removed.
1 parent 5801109 commit 93fa023

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/core/src/array/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,9 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
353353
}
354354
}
355355

356-
// The Default impls cannot be generated using the array_impls! macro because
357-
// they require array literals.
356+
// The Default impls cannot be done with const generics because `[T; 0]` doesn't
357+
// require Default to be implemented, and having different impl blocks for
358+
// different numbers isn't supported yet.
358359

359360
macro_rules! array_impl_default {
360361
{$n:expr, $t:ident $($ts:ident)*} => {

0 commit comments

Comments
 (0)