about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-09-18 20:38:43 +0200
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-09-18 20:38:43 +0200
commitdb09345ef6e7f39110704e6196bb239d8f10fc27 (patch)
treea0374ff643b776d21bb32c07aa4cb88631c4d2b5 /compiler/rustc_errors/src/lib.rs
parentc2047219b59ac7830c4315653858f28cf0d57b9d (diff)
downloadrust-db09345ef6e7f39110704e6196bb239d8f10fc27.tar.gz
rust-db09345ef6e7f39110704e6196bb239d8f10fc27.zip
Add suggestions for expressions in patterns
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 094e3010471..59866012069 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -571,6 +571,8 @@ pub enum StashKey {
     /// Query cycle detected, stashing in favor of a better error.
     Cycle,
     UndeterminedMacroResolution,
+    /// Used by `Parser::maybe_recover_trailing_expr`
+    ExprInPat,
 }
 
 fn default_track_diagnostic<R>(diag: DiagInner, f: &mut dyn FnMut(DiagInner) -> R) -> R {