diff options
| author | bors <bors@rust-lang.org> | 2024-07-26 06:40:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-26 06:40:36 +0000 |
| commit | f98fdfc8a449bf535602b971e8eb12fd282de305 (patch) | |
| tree | f1616040f0575679c5a75a89c75ae074a1b3688f /compiler/rustc_parse/src/errors.rs | |
| parent | 35e70f3e7ec31d5c8bb07f80c62559425a81979c (diff) | |
| parent | 4bd2757b4ccf6c4fed986bae9593782112aecd80 (diff) | |
| download | rust-f98fdfc8a449bf535602b971e8eb12fd282de305.tar.gz rust-f98fdfc8a449bf535602b971e8eb12fd282de305.zip | |
Auto merge of #3765 - rust-lang:rustup-2024-07-26, r=RalfJung
Automatic Rustup
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, +} |
