Fire unsafe_code lint on unsafe extern blocks
This commit is contained in:
parent
c3774be741
commit
a3ef94e80e
5 changed files with 41 additions and 0 deletions
|
@ -81,6 +81,8 @@ pub enum BuiltinUnsafe {
|
|||
AllowInternalUnsafe,
|
||||
#[diag(lint_builtin_unsafe_block)]
|
||||
UnsafeBlock,
|
||||
#[diag(lint_builtin_unsafe_extern_block)]
|
||||
UnsafeExternBlock,
|
||||
#[diag(lint_builtin_unsafe_trait)]
|
||||
UnsafeTrait,
|
||||
#[diag(lint_builtin_unsafe_impl)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue