about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-03 03:16:18 +0000
committerbors <bors@rust-lang.org>2023-01-03 03:16:18 +0000
commit43349195f7ee844eae3b44bfd41beb441e5c1323 (patch)
tree5535d80e30c3e2a01bbf8454c77d636ca53fc7aa /compiler/rustc_codegen_llvm/src
parent1a46dc0b9f923af1c012ac300a2b351cf99560c6 (diff)
parentcf4e9813b0fee5a8a0d7e93eadd4d51d0492a9d6 (diff)
downloadrust-43349195f7ee844eae3b44bfd41beb441e5c1323.tar.gz
rust-43349195f7ee844eae3b44bfd41beb441e5c1323.zip
Auto merge of #10143 - EricWu2003:field_reassign_with_default-FP, r=Manishearth
don't lint field_reassign when field in closure

fixes #10136

This change makes the ContainsName struct visit all interior expressions, which means that ContainsName will return true even if `name` is used in a closure within `expr`.

---

changelog: FP: [`field_reassign_with_default`]: No longer lints cases, where values are initializes from closures capturing struct values
[#10143](https://github.com/rust-lang/rust-clippy/pull/10143)
<!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions