Fix bad replacement for unsafe extern block suggestion
This commit is contained in:
parent
c3d7fb3985
commit
0addda6578
10 changed files with 75 additions and 26 deletions
|
@ -221,7 +221,7 @@ pub enum ExternBlockSuggestion {
|
|||
pub struct InvalidSafetyOnExtern {
|
||||
#[primary_span]
|
||||
pub item_span: Span,
|
||||
#[suggestion(code = "", applicability = "maybe-incorrect")]
|
||||
#[suggestion(code = "unsafe ", applicability = "machine-applicable", style = "verbose")]
|
||||
pub block: Span,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue