1
Fork 0

Avoid suggesting to add unsafe when the extern block is already unsafe

This commit is contained in:
Santiago Pastorino 2024-06-28 23:14:09 -03:00
parent a62cbda57e
commit 15d5dac32e
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 13 additions and 13 deletions

View file

@ -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)]