From: Muhammad Mahad Date: Mon, 3 Jul 2023 12:22:15 +0000 (+0500) Subject: gccrs: [E0034] Ambiguous Method Call Error X-Git-Tag: basepoints/gcc-15~2408 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57c7cc6abf452d18134cbef6fa1b7c0a2941602e;p=thirdparty%2Fgcc.git 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 --- 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 ()); } };