aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-07-04 16:48:20 +0500
committerPhilip Herron <philip.herron@embecosm.com>2023-07-06 10:53:48 +0000
commitc8679a6d880cd99261b796a0818e93f2168344a8 (patch)
tree4ef5d3d52b9b3ef8ce004af846ed153bc62b4e91 /gcc
parent5d8f78c9d22fa68be8f6749699b8806bcae4f91d (diff)
downloadgcc-c8679a6d880cd99261b796a0818e93f2168344a8.zip
gcc-c8679a6d880cd99261b796a0818e93f2168344a8.tar.gz
gcc-c8679a6d880cd99261b796a0818e93f2168344a8.tar.bz2
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.cc3
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 bb8a5eb..889cd32 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 ());
}