Avoid suggesting to add unsafe when the extern block is already unsafe
This commit is contained in:
parent
a62cbda57e
commit
15d5dac32e
3 changed files with 13 additions and 13 deletions
|
@ -222,7 +222,7 @@ pub struct InvalidSafetyOnExtern {
|
|||
#[primary_span]
|
||||
pub item_span: Span,
|
||||
#[suggestion(code = "unsafe ", applicability = "machine-applicable", style = "verbose")]
|
||||
pub block: Span,
|
||||
pub block: Option<Span>,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue