]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: [E0034] Ambiguous Method Call Error
authorMuhammad Mahad <mahadtxt@gmail.com>
Mon, 3 Jul 2023 12:22:15 +0000 (17:22 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:31 +0000 (18:49 +0100)
Ambiguous Method Call Error - more than one method
has the same prototype

gcc/rust/ChangeLog:

* typecheck/rust-hir-path-probe.h: called error function

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-hir-path-probe.h

index 1429a64f50caaae067d3820f033da7b6a56c0e26..82fb8bf7eec074bf74c3a6bc2115c203f6b51453 100644 (file)
@@ -164,7 +164,8 @@ public:
     for (auto &c : candidates)
       r.add_range (c.locus);
 
-    rust_error_at (r, "multiple applicable items in scope for: %s",
+    rust_error_at (r, ErrorCode ("E0034"),
+                  "multiple applicable items in scope for: %s",
                   query.as_string ().c_str ());
   }
 };