Skip to content

Commit

Permalink
gccrs: [E0107] Wrong number of generic argument
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args):
	Added errorcode.

Signed-off-by: Muhammad Mahad <[email protected]>
  • Loading branch information
MahadMuhammad authored and philberty committed Aug 9, 2023
1 parent f7d9373 commit 2fcf448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/rust/typecheck/rust-tyty-subst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ SubstitutionRef::get_mappings_from_generic_args (HIR::GenericArgs &args)
r.add_range (substitutions.front ().get_param_locus ());

rust_error_at (
r,
r, ErrorCode::E0107,
"generic item takes at least %lu type arguments but %lu were supplied",
(unsigned long) (min_required_substitutions () - offs),
(unsigned long) args.get_type_args ().size ());
Expand Down

0 comments on commit 2fcf448

Please sign in to comment.