about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-04-25 15:55:44 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-04-25 17:02:59 +0500
commitf072d3074170f1e70a6f6a1b309fa43f62c25a3c (patch)
tree51537a73b5ef7cf7a5a4072b2bd821e64d7ad932 /compiler/rustc_parse/src/errors.rs
parent847e3ee6b0e614937eee4e6d8f61094411eadcc0 (diff)
downloadrust-f072d3074170f1e70a6f6a1b309fa43f62c25a3c.tar.gz
rust-f072d3074170f1e70a6f6a1b309fa43f62c25a3c.zip
resolved conflict
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
-rw-r--r--compiler/rustc_parse/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs
index 35cf4c1b00d..6a6fb0eb9b5 100644
--- a/compiler/rustc_parse/src/errors.rs
+++ b/compiler/rustc_parse/src/errors.rs
@@ -478,6 +478,13 @@ pub(crate) struct ExpectedExpressionFoundLet {
     pub comparison: Option<MaybeComparison>,
 }
 
+#[derive(Diagnostic)]
+#[diag(parse_or_in_let_chain)]
+pub(crate) struct OrInLetChain {
+    #[primary_span]
+    pub span: Span,
+}
+
 #[derive(Subdiagnostic, Clone, Copy)]
 #[multipart_suggestion(
     parse_maybe_missing_let,