diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-07 16:19:05 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-17 09:30:39 +1100 |
| commit | 223c95fd59f361ff482bf26434900fc8f72fbe04 (patch) | |
| tree | 854df1d9cea4773e4741de1897b0c2dc5d5d9a6f /compiler/rustc_interface/src/errors.rs | |
| parent | 13280eed6a04b94efa3702733d733f5496f60d27 (diff) | |
| download | rust-223c95fd59f361ff482bf26434900fc8f72fbe04.tar.gz rust-223c95fd59f361ff482bf26434900fc8f72fbe04.zip | |
Move `rustc_middle::limits` to `rustc_interface`.
It's always good to make `rustc_middle` smaller. `rustc_interface` is the best destination, because it's the only crate that calls `get_recursive_limit`.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
| -rw-r--r-- | compiler/rustc_interface/src/errors.rs | 10 |
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, +} |
