From 57c7cc6abf452d18134cbef6fa1b7c0a2941602e Mon Sep 17 00:00:00 2001 From: Muhammad Mahad Date: Mon, 3 Jul 2023 17:22:15 +0500 Subject: [PATCH] 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 --- gcc/rust/typecheck/rust-hir-path-probe.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/rust/typecheck/rust-hir-path-probe.h b/gcc/rust/typecheck/rust-hir-path-probe.h index 1429a64f50ca..82fb8bf7eec0 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 ()); } }; -- 2.47.2