Skip to content

Commit c8679a6

Browse files
MahadMuhammadphilberty
authored andcommitted
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 <[email protected]>
1 parent 5d8f78c commit c8679a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/rust/typecheck/rust-hir-type-check-item.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ TypeCheckItem::validate_trait_impl_block (
659659
r.add_range (missing_trait_item.get_locus ());
660660
}
661661

662-
rust_error_at (r, "missing %s in implementation of trait %<%s%>",
662+
rust_error_at (r, ErrorCode ("E0046"),
663+
"missing %s in implementation of trait %<%s%>",
663664
missing_items_buf.c_str (),
664665
trait_reference->get_name ().c_str ());
665666
}

0 commit comments

Comments
 (0)