Skip to content

Commit

Permalink
gccrs:[E0046] Missing Items in Trait Implementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MahadMuhammad authored and philberty committed Jul 6, 2023
1 parent 5d8f78c commit c8679a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcc/rust/typecheck/rust-hir-type-check-item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ());
}
Expand Down

0 comments on commit c8679a6

Please sign in to comment.