Skip to content

Commit fb61f5d

Browse files
committed
Fix fmt
1 parent f02d8ec commit fb61f5d

File tree

1 file changed

+2
-5
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+2
-5
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
761761
Compatibility::Incompatible(Some(e)),
762762
) = error else { return false };
763763
let (provided_ty, provided_span) = provided_arg_tys[*provided_idx];
764-
let trace = mk_trace(
765-
provided_span,
766-
formal_and_expected_inputs[*expected_idx],
767-
provided_ty,
768-
);
764+
let trace =
765+
mk_trace(provided_span, formal_and_expected_inputs[*expected_idx], provided_ty);
769766
if !matches!(trace.cause.as_failure_code(*e), FailureCode::Error0308(_)) {
770767
self.err_ctxt().report_and_explain_type_error(trace, *e).emit();
771768
return true;

0 commit comments

Comments
 (0)