gccrs: ast: Dump impl trait type

gcc/rust/ChangeLog:

	* ast/rust-ast-dump.cc (Dump::visit): Add missing visitor.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
This commit is contained in:
Jakub Dupak
2022-11-15 15:44:48 +01:00
committed by Arthur Cohen
parent ca06115eac
commit 638f65b208

View File

@@ -1610,8 +1610,16 @@ Dump::visit (TraitBound &bound)
}
void
Dump::visit (ImplTraitType &)
{}
Dump::visit (ImplTraitType &type)
{
// Syntax:
// impl TypeParamBounds
// TypeParamBounds :
// TypeParamBound ( + TypeParamBound )* +?
stream << "impl ";
visit_items_joined_by_separator(type.get_type_param_bounds (), " + ");
}
void
Dump::visit (TraitObjectType &)