Skip to content

Commit

Permalink
Rollup merge of rust-lang#92360 - jackh726:param-heuristics-1, r=davi…
Browse files Browse the repository at this point in the history
…dtwco

Some cleanups around check_argument_types

Split out in ways from my rebase/continuation of rust-lang#71827

Commits are mostly self-explanatory and these changes should be fairly straightforward
  • Loading branch information
matthiaskrgr committed Jan 5, 2022
2 parents 0ed0d3b + bbb8bde commit 26d0429
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 108 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_typeck/src/check/callee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
call_expr.span,
call_expr,
fn_sig.inputs(),
&expected_arg_tys,
expected_arg_tys,
arg_exprs,
fn_sig.c_variadic,
TupleArgumentsFlag::DontTupleArguments,
Expand Down Expand Up @@ -529,7 +529,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
call_expr.span,
call_expr,
fn_sig.inputs(),
&expected_arg_tys,
expected_arg_tys,
arg_exprs,
fn_sig.c_variadic,
TupleArgumentsFlag::TupleArguments,
Expand Down
Loading

0 comments on commit 26d0429

Please sign in to comment.