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 097ef517fe
commit 8931da40e3

View File

@ -206,12 +206,8 @@ fn check_inputs(
_ => false,
}
};
if let Some(receiver) = receiver {
std::iter::zip(params, std::iter::once(receiver).chain(call_args.iter()))
.all(|(param, arg)| check_inputs(param, arg))
} else {
std::iter::zip(params, call_args).all(|(param, arg)| check_inputs(param, arg))
}
std::iter::zip(params, receiver.into_iter().chain(call_args.iter()))
.all(|(param, arg)| check_inputs(param, arg))
}
fn check_sig<'tcx>(cx: &LateContext<'tcx>, closure_ty: Ty<'tcx>, call_ty: Ty<'tcx>) -> bool {