Skip to content

Commit fb87e7c

Browse files
authored
Rollup merge of #92360 - jackh726:param-heuristics-1, r=davidtwco
Some cleanups around check_argument_types Split out in ways from my rebase/continuation of #71827 Commits are mostly self-explanatory and these changes should be fairly straightforward
2 parents 4d0b567 + bbb8bde commit fb87e7c

File tree

3 files changed

+137
-108
lines changed

3 files changed

+137
-108
lines changed

compiler/rustc_typeck/src/check/callee.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
496496
call_expr.span,
497497
call_expr,
498498
fn_sig.inputs(),
499-
&expected_arg_tys,
499+
expected_arg_tys,
500500
arg_exprs,
501501
fn_sig.c_variadic,
502502
TupleArgumentsFlag::DontTupleArguments,
@@ -529,7 +529,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
529529
call_expr.span,
530530
call_expr,
531531
fn_sig.inputs(),
532-
&expected_arg_tys,
532+
expected_arg_tys,
533533
arg_exprs,
534534
fn_sig.c_variadic,
535535
TupleArgumentsFlag::TupleArguments,

0 commit comments

Comments
 (0)