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>2024-01-21 00:01:21 +0000
committerbors <bors@rust-lang.org>2024-01-21 00:01:21 +0000
commit73868563eddf1dede97d4cc80741a9ca8f076dc5 (patch)
treedc089fecdfb2881d5deedffcc7f2c74686921149 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentfe3e6827c30a35caa9575ffe9dd38265fae475d5 (diff)
parent6267b6ca09b4a91c83bd11a72aeffaf96fa55702 (diff)
downloadrust-73868563eddf1dede97d4cc80741a9ca8f076dc5.tar.gz
rust-73868563eddf1dede97d4cc80741a9ca8f076dc5.zip
Auto merge of #12172 - samueltardieu:issue-12166, r=Alexendoo
no_effect_underscore_binding: _ prefixed variables can be used

Prefixing a variable with a `_` does not mean that it will not be used. If such a variable is used later, do not warn about the fact that its initialization does not have a side effect as this is fine.

changelog: [`no_effect_underscore_binding`]: warn only if variable is unused

Fix #12166
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions