gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Add missing tuple type visitor.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
{}
void
-Dump::visit (TupleType &)
-{}
+Dump::visit (TupleType &type)
+{
+ // Syntax:
+ // ( )
+ // | ( ( Type , )+ Type? )
+
+ stream << '(';
+ visit_items_joined_by_separator (type.get_elems (), ", ");
+ stream << ')';
+}
void
Dump::visit (NeverType &)
{
- // Syntax:
- // !
+ // Syntax:
+ // !
- stream << '!';
+ stream << '!';
}
void