Suggest swapping the order of ref
and box
This commit is contained in:
parent
b29a1e00f8
commit
f4c2bdeec9
6 changed files with 55 additions and 2 deletions
|
@ -137,6 +137,14 @@ pub(crate) enum InvalidVariableDeclarationSub {
|
|||
UseLetNotVar(#[primary_span] Span),
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_switch_ref_box_order)]
|
||||
pub(crate) struct SwitchRefBoxOrder {
|
||||
#[primary_span]
|
||||
#[suggestion(applicability = "machine-applicable", code = "box ref")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_invalid_comparison_operator)]
|
||||
pub(crate) struct InvalidComparisonOperator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue