Enforce that ? and for<...> are not combined
This commit is contained in:
parent
32c8bfdb11
commit
898ed2ffa6
6 changed files with 38 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue