about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/traits.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-22 13:26:32 +0000
committerbors <bors@rust-lang.org>2021-08-22 13:26:32 +0000
commit7481e6d1a415853a96dcec11a052caaa02859b5a (patch)
tree63de73abacd8425bc7670c18c35f7e3acaba7bec /compiler/rustc_lint/src/traits.rs
parent1eb187c16ec4f26fdeaff527e3ba2b1e609cabd2 (diff)
parentada92825c9f38a0c1e198b63e806687d2338340e (diff)
downloadrust-7481e6d1a415853a96dcec11a052caaa02859b5a.tar.gz
rust-7481e6d1a415853a96dcec11a052caaa02859b5a.zip
Auto merge of #88163 - camsteffen:collapsible-match-fix, r=Manishearth
Fix clippy::collapsible_match with let expressions

This fixes rust-lang/rust-clippy#7575 which is a regression from #80357. I am fixing the bug here instead of in the clippy repo (if that's okay) because a) the regression has not been synced yet and b) I would like to land the fix on nightly asap.

The fix is basically to re-generalize `match` and `if let` for the lint implementation (they were split because `if let` no longer desugars to `match` in the HIR).

Also fixes rust-lang/rust-clippy#7586 and fixes rust-lang/rust-clippy#7591
cc `@rust-lang/clippy`
`@xFrednet` do you want to review this?
Diffstat (limited to 'compiler/rustc_lint/src/traits.rs')
0 files changed, 0 insertions, 0 deletions