And additionally enforce ? and async/const aren't mixed
This commit is contained in:
parent
898ed2ffa6
commit
de88bc5c89
10 changed files with 120 additions and 44 deletions
|
@ -3060,3 +3060,14 @@ pub struct BinderAndPolarity {
|
|||
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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue