Improve diagnostic by suggesting to remove visibility qualifier
This commit is contained in:
parent
30840c53f4
commit
ac1bee6493
19 changed files with 77 additions and 44 deletions
|
@ -31,6 +31,12 @@ pub struct VisibilityNotPermitted {
|
|||
pub span: Span,
|
||||
#[subdiagnostic]
|
||||
pub note: VisibilityNotPermittedNote,
|
||||
#[suggestion(
|
||||
ast_passes_remove_qualifier_sugg,
|
||||
code = "",
|
||||
applicability = "machine-applicable"
|
||||
)]
|
||||
pub remove_qualifier_sugg: Span,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue