about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-16 06:05:59 +0200
committerGitHub <noreply@github.com>2022-08-16 06:05:59 +0200
commit76dd1663d9bcad3d9d708af1625412d2ef87fb19 (patch)
tree21481c463c974640ac88ef9580438e999785d700 /compiler/rustc_errors
parentfc735b05b88d9310db779ba7d2bf8829b7268623 (diff)
parent12e609ba3cb7a395601c3b6762682248b0a325ad (diff)
downloadrust-76dd1663d9bcad3d9d708af1625412d2ef87fb19.tar.gz
rust-76dd1663d9bcad3d9d708af1625412d2ef87fb19.zip
Rollup merge of #100590 - TaKO8Ki:suggest-adding-array-length, r=compiler-errors
Suggest adding an array length if possible

fixes #100448
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index d2eb4f212eb..395bf5aad01 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -457,6 +457,7 @@ struct HandlerInner {
 #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
 pub enum StashKey {
     ItemNoType,
+    UnderscoreForArrayLengths,
 }
 
 fn default_track_diagnostic(_: &Diagnostic) {}