about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-09-14 14:37:10 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-14 14:45:50 +1000
commit16c720645cac29e71cc897374bb462fab42a8682 (patch)
tree4d7b32d8103756092fbac2082dcc63e861db0033
parenta015919e54c60b1b2bec7a98dec478cfc4a48f4e (diff)
downloadrust-16c720645cac29e71cc897374bb462fab42a8682.tar.gz
rust-16c720645cac29e71cc897374bb462fab42a8682.zip
Note some previous attempts to change the Default impl for `[T; 0]`
-rw-r--r--library/core/src/array/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index d14419a23a1..d713e575b58 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -472,6 +472,11 @@ impl<T: Copy> SpecArrayClone for T {
 // 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.
+//
+// Trying to improve the `[T; 0]` situation has proven to be difficult.
+// Please see these issues for more context on past attempts and crater runs:
+// - https://github.com/rust-lang/rust/issues/61415
+// - https://github.com/rust-lang/rust/pull/145457
 
 macro_rules! array_impl_default {
     {$n:expr, $t:ident $($ts:ident)*} => {