diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-15 17:02:00 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:49 +0100 |
commit | 0bb33cb5741e155d830820dbe6cc3e0666ffccf3 (patch) | |
tree | 973cf62f5ed8844cb980370f5890d753a1d47b39 | |
parent | e311e9b7c591d0e612c1598c202212da201054a3 (diff) | |
download | gcc-0bb33cb5741e155d830820dbe6cc3e0666ffccf3.zip gcc-0bb33cb5741e155d830820dbe6cc3e0666ffccf3.tar.gz gcc-0bb33cb5741e155d830820dbe6cc3e0666ffccf3.tar.bz2 |
gccrs: ast: Dump trait object type one bound
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Add missing visitor.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 8e06bf3..7d62571 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1656,8 +1656,15 @@ Dump::visit (ImplTraitTypeOneBound &type) } void -Dump::visit (TraitObjectTypeOneBound &) -{} +Dump::visit (TraitObjectTypeOneBound &type) +{ + // Syntax: + // dyn? TraitBound + + if (type.is_dyn ()) + stream << "dyn "; + visit(type.get_trait_bound()); +} void Dump::visit (TupleType &type) |