diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-05 13:44:17 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-06 16:12:43 +0000 |
commit | b9566fddf2915f68f050844df699389474c49ac4 (patch) | |
tree | fc2375054556ab8f5711546d7d350c0dbcbbd9d4 | |
parent | 0aa7ed791bfb7123190ca21bfc4006599faa6ae1 (diff) | |
download | gcc-b9566fddf2915f68f050844df699389474c49ac4.zip gcc-b9566fddf2915f68f050844df699389474c49ac4.tar.gz gcc-b9566fddf2915f68f050844df699389474c49ac4.tar.bz2 |
gccrs: [E0053] method 'x' has an incompatible type for trait 'y'
The parameters of any trait method must match between
a trait implementation and the trait definition
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-implitem.cc (TypeCheckImplItemWithTrait::visit):
called error function
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
-rw-r--r-- | gcc/rust/typecheck/rust-hir-type-check-implitem.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-hir-type-check-implitem.cc b/gcc/rust/typecheck/rust-hir-type-check-implitem.cc index 0bc5cb1..3f2ff22 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-implitem.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-implitem.cc @@ -529,7 +529,7 @@ TypeCheckImplItemWithTrait::visit (HIR::Function &function) RichLocation r (function.get_locus ()); r.add_range (resolved_trait_item.get_locus ()); - rust_error_at (r, + rust_error_at (r, ErrorCode ("E0053"), "method %<%s%> has an incompatible type for trait %<%s%>", function.get_function_name ().as_string ().c_str (), trait_reference.get_name ().c_str ()); |