diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-04 16:48:20 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:31 +0100 |
commit | 590352852f0be8a46d5b8cc3cfcd92dc423b6208 (patch) | |
tree | 5649c3483296a90d54de891706a0521ccfd9b5f3 /gcc | |
parent | 1c3a8fbb178236a0a4bd2661a7df071a84b88ca6 (diff) | |
download | gcc-590352852f0be8a46d5b8cc3cfcd92dc423b6208.zip gcc-590352852f0be8a46d5b8cc3cfcd92dc423b6208.tar.gz gcc-590352852f0be8a46d5b8cc3cfcd92dc423b6208.tar.bz2 |
gccrs: gccrs:[E0046] Missing Items in Trait Implementation
missing foo in implementation of trait 'Foo'
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-item.cc: called error function.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/typecheck/rust-hir-type-check-item.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-hir-type-check-item.cc b/gcc/rust/typecheck/rust-hir-type-check-item.cc index 3acbb5e..6c52630 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-item.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-item.cc @@ -659,7 +659,8 @@ TypeCheckItem::validate_trait_impl_block ( r.add_range (missing_trait_item.get_locus ()); } - rust_error_at (r, "missing %s in implementation of trait %<%s%>", + rust_error_at (r, ErrorCode ("E0046"), + "missing %s in implementation of trait %<%s%>", missing_items_buf.c_str (), trait_reference->get_name ().c_str ()); } |