about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-30 05:41:24 +0000
committerbors <bors@rust-lang.org>2023-07-30 05:41:24 +0000
commit4c2f460dccf78b9f94df0a235de6ea10b0d495d3 (patch)
treeaf0155573973bac403b758f79527209a3bd3cc51 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent29730969b196781e92ca8c8b2d0a8bf9bb105e22 (diff)
parent7423c2760b0dbfd4379d2c3eac309d660b859f41 (diff)
downloadrust-4c2f460dccf78b9f94df0a235de6ea10b0d495d3.tar.gz
rust-4c2f460dccf78b9f94df0a235de6ea10b0d495d3.zip
Auto merge of #8685 - Jarcho:redundant_closure_fixes, r=llogiq
`redundant_closure` fixes

fixes #8548

A good chunk of the code is fixing false negatives. The old code banned any non late-bound regions from appearing in the callee's signature. The new version checks when the late-bound region is actually required.

changelog: Better track when a early-bound region appears when a late-bound region is required in `redundant_closure`.
changelog: Don't lint `redundant_closure` when the closure gives explicit types.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions