diff options
| author | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-09-18 20:38:43 +0200 |
|---|---|---|
| committer | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-09-18 20:38:43 +0200 |
| commit | db09345ef6e7f39110704e6196bb239d8f10fc27 (patch) | |
| tree | a0374ff643b776d21bb32c07aa4cb88631c4d2b5 /compiler/rustc_errors | |
| parent | c2047219b59ac7830c4315653858f28cf0d57b9d (diff) | |
| download | rust-db09345ef6e7f39110704e6196bb239d8f10fc27.tar.gz rust-db09345ef6e7f39110704e6196bb239d8f10fc27.zip | |
Add suggestions for expressions in patterns
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
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 { |
