]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
Rollup merge of #107175 - compiler-errors:bad-types-in-vec-push, r=estebank
[rust.git] / compiler / rustc_hir_typeck / src / fn_ctxt / checks.rs
index a6d96881c8f290efd9d014f521954cd448beca4e..e78c76d5dde7031337b15a34272520d5438cebff 100644 (file)
@@ -808,7 +808,13 @@ fn has_error_or_infer<'tcx>(tys: impl IntoIterator<Item = Ty<'tcx>>) -> bool {
                     kind: TypeVariableOriginKind::MiscVariable,
                     span: full_call_span,
                 });
-                self.point_at_expr_source_of_inferred_type(&mut err, rcvr, expected, callee_ty);
+                self.point_at_expr_source_of_inferred_type(
+                    &mut err,
+                    rcvr,
+                    expected,
+                    callee_ty,
+                    provided_arg_span,
+                );
             }
             // Call out where the function is defined
             self.label_fn_like(