diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-03 17:22:15 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-04 05:06:51 +0000 |
commit | 5406b633a1f5e6e3ae8da02589adf4ea003dec12 (patch) | |
tree | 7198b45792a34007b3eefa26141603c7576ecc74 | |
parent | 28be497dc3385e53e6ac62b63a272b73b0594d60 (diff) | |
download | gcc-5406b633a1f5e6e3ae8da02589adf4ea003dec12.zip gcc-5406b633a1f5e6e3ae8da02589adf4ea003dec12.tar.gz gcc-5406b633a1f5e6e3ae8da02589adf4ea003dec12.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>
-rw-r--r-- | gcc/rust/typecheck/rust-hir-path-probe.h | 3 |
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 a569fea..d1a07fc 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 ()); } }; |