about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-04-15 11:10:50 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-13 09:48:31 +0000
commitb28221e74f5f05d0f7a6212f99c9d5af868c0ed3 (patch)
tree5917f78dd30b1fa459c382e30947f3bf4240e619
parent921645c737f1d6d107a0a10ca5ee129d364dcd7a (diff)
downloadrust-b28221e74f5f05d0f7a6212f99c9d5af868c0ed3.tar.gz
rust-b28221e74f5f05d0f7a6212f99c9d5af868c0ed3.zip
Use diagnostic method for diagnostics
-rw-r--r--compiler/rustc_hir_typeck/src/callee.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_typeck/src/callee.rs b/compiler/rustc_hir_typeck/src/callee.rs
index 9736c8b8920..93222c18686 100644
--- a/compiler/rustc_hir_typeck/src/callee.rs
+++ b/compiler/rustc_hir_typeck/src/callee.rs
@@ -628,7 +628,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 return;
             };
 
-            let pick = self.confirm_method(
+            let pick = self.confirm_method_for_diagnostic(
                 call_expr.span,
                 callee_expr,
                 call_expr,