]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #7741 - surechen:fix_if_then_panic, r=flip1995
authorbors <bors@rust-lang.org>
Fri, 1 Oct 2021 10:04:19 +0000 (10:04 +0000)
committerbors <bors@rust-lang.org>
Fri, 1 Oct 2021 10:04:19 +0000 (10:04 +0000)
Make if_then_panic handle situation of BinOpKind::And || BinOpKind::Or

fixes #7731

Make if_then_panic handle situation of cond.kind = ExprKind::DropTemps(ExprKind::Binary(BinOpKind::And || BinOpKind::Or, left, right), ..) =

changelog: [`if_then_panic`] Fix suggestion for more complex conditions


Trivial merge