mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
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:
committed by
Arthur Cohen
parent
ca06115eac
commit
638f65b208
@@ -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 &)
|
||||
|
||||
Reference in New Issue
Block a user