Rollup merge of #127535 - spastorino:unsafe_code-unsafe_extern_blocks, r=oli-obk
Fire unsafe_code lint on unsafe extern blocks Fixes #126738
This commit is contained in:
commit
2e0591b1e9
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