about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/errors.rs
diff options
context:
space:
mode:
authorJean CASPAR <55629512+JeanCASPAR@users.noreply.github.com>2022-08-26 18:03:41 +0200
committerJean CASPAR <55629512+JeanCASPAR@users.noreply.github.com>2022-08-27 09:15:55 +0200
commite89d4fcc7d99bcf76464d9c0994d54d12e00dfb7 (patch)
treea6143f99933e54b43c6aeac889524b28090adb3b /compiler/rustc_ast_lowering/src/errors.rs
parent9845f4c47e7062867c73b6bed8f1df273b56d5d7 (diff)
downloadrust-e89d4fcc7d99bcf76464d9c0994d54d12e00dfb7.tar.gz
rust-e89d4fcc7d99bcf76464d9c0994d54d12e00dfb7.zip
remove span_fatal from ast_lowering
Diffstat (limited to 'compiler/rustc_ast_lowering/src/errors.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs
index 59f1b7180e4..4adeaef9bbf 100644
--- a/compiler/rustc_ast_lowering/src/errors.rs
+++ b/compiler/rustc_ast_lowering/src/errors.rs
@@ -327,3 +327,10 @@ pub struct ArbitraryExpressionInPattern {
     #[primary_span]
     pub span: Span,
 }
+
+#[derive(SessionDiagnostic, Clone, Copy)]
+#[diag(ast_lowering::inclusive_range_with_no_end)]
+pub struct InclusiveRangeWithNoEnd {
+    #[primary_span]
+    pub span: Span,
+}