Fire unsafe_code lint on unsafe extern blocks

This commit is contained in:
Santiago Pastorino 2024-07-09 17:35:51 -03:00
parent c3774be741
commit a3ef94e80e
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
5 changed files with 41 additions and 0 deletions

View file

@ -163,6 +163,8 @@ lint_builtin_unreachable_pub = unreachable `pub` {$what}
lint_builtin_unsafe_block = usage of an `unsafe` block
lint_builtin_unsafe_extern_block = usage of an `unsafe extern` block
lint_builtin_unsafe_impl = implementation of an `unsafe` trait
lint_builtin_unsafe_trait = declaration of an `unsafe` trait