diff options
| author | Michael Goulet <michael@errs.io> | 2024-07-10 17:49:50 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-07-10 17:49:50 -0400 |
| commit | 898ed2ffa6c485530af1fbe6117c0deb4290715f (patch) | |
| tree | 4813396f722c85139d412395a3a9a9c05858de40 /compiler/rustc_parse/src/errors.rs | |
| parent | 32c8bfdb11e519c6608ead730b6dfafc6cafb9c5 (diff) | |
| download | rust-898ed2ffa6c485530af1fbe6117c0deb4290715f.tar.gz rust-898ed2ffa6c485530af1fbe6117c0deb4290715f.zip | |
Enforce that ? and for<...> are not combined
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 6738cc4a120..9b18a771fde 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -3050,3 +3050,13 @@ pub struct BinderBeforeModifiers { #[label] pub modifiers_span: Span, } + +#[derive(Diagnostic)] +#[diag(parse_binder_and_polarity)] +pub struct BinderAndPolarity { + #[primary_span] + pub polarity_span: Span, + #[label] + pub binder_span: Span, + pub polarity: &'static str, +} |
