mirror of https://github.com/rust-lang/rust.git
use `propagate_through_exprs` instead of `propagate_through_expr`
fix `ExprKind` static_assert_size fix hir-stats
This commit is contained in:
parent
097ef517fe
commit
8931da40e3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue