about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-12 16:32:41 +0000
committerbors <bors@rust-lang.org>2024-05-12 16:32:41 +0000
commita4a1a7365d60280b83d83374fda97742fb959239 (patch)
tree6c94626a0f8c184dd53608b47f2ac350d1a42ab3 /compiler/rustc_codegen_llvm/src
parent7cfb9a0d6fee91ad636a091f6a425521259f776a (diff)
parent9747c80644fc9f705029c254ca1d14668a72f904 (diff)
downloadrust-a4a1a7365d60280b83d83374fda97742fb959239.tar.gz
rust-a4a1a7365d60280b83d83374fda97742fb959239.zip
Auto merge of #12107 - y21:expr_metavars_in_unsafe, r=xFrednet
new lint: `macro_metavars_in_unsafe`

This implements a lint that I've been meaning to write for a while: a macro with an `expr` metavariable that is then expanded in an unsafe context. It's bad because it lets the user write unsafe code without an unsafe block.

Note: this has gone through some major rewrites, so any comment before https://github.com/rust-lang/rust-clippy/pull/12107#issuecomment-2029503545 is outdated and was based on an older version that has since been completely rewritten.

changelog: new lint: [`macro_metavars_in_unsafe`]
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions