about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2025-02-19 05:39:15 +0000
committerGitHub <noreply@github.com>2025-02-19 05:39:15 +0000
commite2ba35a451de25fdad24333040ee3dfca114614b (patch)
tree175f3b6562847b432bc2f26c5a661ff97206c2fa /compiler/rustc_interface/src/errors.rs
parent821c33fe073c3e230baa207e88b973f9b4d96072 (diff)
parent2e71770009871a3a8b4ec2974c4918c09445666b (diff)
downloadrust-e2ba35a451de25fdad24333040ee3dfca114614b.tar.gz
rust-e2ba35a451de25fdad24333040ee3dfca114614b.zip
Merge pull request #4197 from rust-lang/rustup-2025-02-19
Automatic Rustup
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
-rw-r--r--compiler/rustc_interface/src/errors.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/errors.rs b/compiler/rustc_interface/src/errors.rs
index c3b858d4f2e..ca4e556dcdb 100644
--- a/compiler/rustc_interface/src/errors.rs
+++ b/compiler/rustc_interface/src/errors.rs
@@ -127,3 +127,13 @@ pub(crate) struct AbiRequiredTargetFeature<'a> {
     pub feature: &'a str,
     pub enabled: &'a str,
 }
+
+#[derive(Diagnostic)]
+#[diag(interface_limit_invalid)]
+pub(crate) struct LimitInvalid<'a> {
+    #[primary_span]
+    pub span: Span,
+    #[label]
+    pub value_span: Span,
+    pub error_str: &'a str,
+}