1
Fork 0

use propagate_through_exprs instead of propagate_through_expr

fix `ExprKind` static_assert_size

fix hir-stats
This commit is contained in:
Takayuki Maeda 2022-09-05 14:26:00 +09:00
parent fea1c5f5c8
commit 9cde34e180
5 changed files with 26 additions and 35 deletions

View file

@ -1041,10 +1041,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
hir::ExprKind::MethodCall(.., receiver, ref args, _) => {
let succ = self.check_is_ty_uninhabited(expr, succ);
let succ = args
.iter()
.rev()
.fold(succ, |succ, expr| self.propagate_through_expr(expr, succ));
let succ = self.propagate_through_exprs(args, succ);
self.propagate_through_expr(receiver, succ)
}