diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-15 15:44:48 +0100 |
---|---|---|
committer | Jakub Dupak <dev@jakubdupak.com> | 2022-11-16 17:59:35 +0100 |
commit | 9147e08003b935e312437ec61e83120c8eceb74b (patch) | |
tree | 2c7ea32a918f8ce30e4da62ef2a9170080ad2aa7 | |
parent | 6c432d6ca2f767f5afe3006e6aa8d5123e4f4636 (diff) | |
download | gcc-9147e08003b935e312437ec61e83120c8eceb74b.zip gcc-9147e08003b935e312437ec61e83120c8eceb74b.tar.gz gcc-9147e08003b935e312437ec61e83120c8eceb74b.tar.bz2 |
ast: Dump impl trait type
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 2f01c72..1d593d4 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -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 &) |