Fix diagnostic for qualifier in extern block
Closes: https://github.com/rust-lang/rust/issues/123306
This commit is contained in:
parent
45796d1c24
commit
109daa2d4b
10 changed files with 93 additions and 72 deletions
|
@ -270,11 +270,10 @@ pub struct FnBodyInExtern {
|
|||
#[diag(ast_passes_extern_fn_qualifiers)]
|
||||
pub struct FnQualifierInExtern {
|
||||
#[primary_span]
|
||||
#[suggestion(code = "", applicability = "maybe-incorrect")]
|
||||
pub span: Span,
|
||||
#[label]
|
||||
pub block: Span,
|
||||
#[suggestion(code = "fn ", applicability = "maybe-incorrect", style = "verbose")]
|
||||
pub sugg_span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue