diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-07-26 05:08:10 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-07-26 05:08:10 +0000 |
| commit | 4bd2757b4ccf6c4fed986bae9593782112aecd80 (patch) | |
| tree | f1616040f0575679c5a75a89c75ae074a1b3688f /compiler/rustc_parse/src/errors.rs | |
| parent | b5490357bac87ac70ca6f4729bd7fd127529eff5 (diff) | |
| parent | 72d73cec61aa8f85901358cd5d386d5dd066fe52 (diff) | |
| download | rust-4bd2757b4ccf6c4fed986bae9593782112aecd80.tar.gz rust-4bd2757b4ccf6c4fed986bae9593782112aecd80.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 109d36fe689..2e81d2a876b 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -3212,3 +3212,33 @@ pub struct UnsafeAttrOutsideUnsafeSuggestion { #[suggestion_part(code = ")")] pub right: Span, } + +#[derive(Diagnostic)] +#[diag(parse_binder_before_modifiers)] +pub struct BinderBeforeModifiers { + #[primary_span] + pub binder_span: Span, + #[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, +} + +#[derive(Diagnostic)] +#[diag(parse_modifiers_and_polarity)] +pub struct PolarityAndModifiers { + #[primary_span] + pub polarity_span: Span, + #[label] + pub modifiers_span: Span, + pub polarity: &'static str, + pub modifiers_concatenated: String, +} |
