aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-07-03 17:22:15 +0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:49:31 +0100
commit57c7cc6abf452d18134cbef6fa1b7c0a2941602e (patch)
tree64622497116342eb2a54452ce1294190265ef4cb /gcc
parentc34f50643daca821f470677ef0c0fb095f0c3165 (diff)
downloadgcc-57c7cc6abf452d18134cbef6fa1b7c0a2941602e.zip
gcc-57c7cc6abf452d18134cbef6fa1b7c0a2941602e.tar.gz
gcc-57c7cc6abf452d18134cbef6fa1b7c0a2941602e.tar.bz2
gccrs: [E0034] Ambiguous Method Call Error
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/typecheck/rust-hir-path-probe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-hir-path-probe.h b/gcc/rust/typecheck/rust-hir-path-probe.h
index 1429a64..82fb8bf 100644
--- a/gcc/rust/typecheck/rust-hir-path-probe.h
+++ b/gcc/rust/typecheck/rust-hir-path-probe.h
@@ -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 ());
}
};