about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-11-16 19:10:38 +0000
committerMichael Goulet <michael@errs.io>2022-11-18 17:27:55 +0000
commitbb0cb9ae9fb2dbebc62627a3f1f4326771338535 (patch)
tree354affbb3dc1f34ad315c138a4e5c42366fa66c7 /compiler/rustc_errors/src/lib.rs
parentfd3bfb35511cbcff59ce1454d3db627b576d7e92 (diff)
downloadrust-bb0cb9ae9fb2dbebc62627a3f1f4326771338535.tar.gz
rust-bb0cb9ae9fb2dbebc62627a3f1f4326771338535.zip
Add a detailed note for missing comma in FRU syntax typo
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
-rw-r--r--compiler/rustc_errors/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 170d4341ae7..ab518137342 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -466,6 +466,9 @@ pub enum StashKey {
     /// When an invalid lifetime e.g. `'2` should be reinterpreted
     /// as a char literal in the parser
     LifetimeIsChar,
+    /// Maybe there was a typo where a comma was forgotten before
+    /// FRU syntax
+    MaybeFruTypo,
 }
 
 fn default_track_diagnostic(_: &Diagnostic) {}