about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-18 17:42:20 +0000
committerbors <bors@rust-lang.org>2023-10-18 17:42:20 +0000
commit5fb312ef211ad3a99add76430d2126a5cd349b84 (patch)
tree8a897693623b2a3ed9ea91171c5205d3734f5a7c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2640d5cc85ff32de901d36cebbd48ccf0b398453 (diff)
parent80a092c6dfa046780c930cf709680d5fb7121df0 (diff)
downloadrust-5fb312ef211ad3a99add76430d2126a5cd349b84.tar.gz
rust-5fb312ef211ad3a99add76430d2126a5cd349b84.zip
Auto merge of #11624 - GuillaumeGomez:needless_pass_by_ref_mut-unsafe-fn-block, r=blyxyas
Don't emit `needless_pass_by_ref_mut` if the variable is used in an unsafe block or function

Fixes https://github.com/rust-lang/rust-clippy/issues/11586.
Fixes https://github.com/rust-lang/rust-clippy/issues/11180.

As suggested in the two issues above, this lint should not be emitted if this an unsafe function or if the argument is used in an unsafe block.

changelog: [`needless_pass_by_ref_mut`]: Don't emit if the variable is used in an unsafe block or function
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions