bors fe999e88ed Auto merge of #7741 - surechen:fix_if_then_panic, r=flip1995
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
2021-10-01 10:04:19 +00:00
..
2021-09-23 11:22:38 -04:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-30 14:07:58 -05:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-06-18 16:11:32 +08:00
2021-06-18 16:11:32 +08:00
2021-06-18 16:11:32 +08:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-08-11 14:21:33 +00:00
2021-10-01 13:13:09 +08:00
2021-09-30 19:06:42 +08:00
2021-10-01 13:13:09 +08:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-06-18 16:20:30 +08:00
2021-06-18 16:20:30 +08:00
2021-06-18 16:11:32 +08:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-09-09 17:10:59 -05:00
2021-09-09 17:10:59 -05:00
2021-09-09 17:10:59 -05:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-27 22:23:17 -07:00
2021-09-27 22:23:17 -07:00
2021-09-27 22:23:17 -07:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-06-04 08:05:54 -04:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-24 22:14:20 +08:00
2021-09-24 22:14:20 +08:00
2021-08-11 14:21:33 +00:00
2021-09-14 09:20:27 +08:00
2021-09-14 09:20:27 +08:00
2021-09-30 14:07:58 -05:00
2021-09-30 14:07:58 -05:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-07-27 16:26:50 -04:00
2021-07-27 16:26:50 -04:00
2021-07-27 16:26:50 -04:00
2021-07-27 16:26:50 -04:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2021-09-22 16:04:04 +08:00