about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-11-04 01:48:28 +0100
committerest31 <MTest31@outlook.com>2020-11-04 12:21:22 +0100
commit93fa023111ddfa1997e32b117a3fff01c03c4db1 (patch)
tree8c971edff9bdc005067afda4cc9c53be63d2396a /library/core/src/array
parent5801109ba961b07364e915e6d1d8fa5e81ac6e47 (diff)
downloadrust-93fa023111ddfa1997e32b117a3fff01c03c4db1.tar.gz
rust-93fa023111ddfa1997e32b117a3fff01c03c4db1.zip
Fix outdated comment next to array_impl_default
The comment has become outdated as the array_impl macro
has been removed.
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 966272ca115..c8748d78816 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -353,8 +353,9 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
     }
 }
 
-// The Default impls cannot be generated using the array_impls! macro because
-// they require array literals.
+// The Default impls cannot be done with const generics because `[T; 0]` doesn't
+// require Default to be implemented, and having different impl blocks for
+// different numbers isn't supported yet.
 
 macro_rules! array_impl_default {
     {$n:expr, $t:ident $($ts:ident)*} => {