aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2022-11-15 17:02:00 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:49 +0100
commit0bb33cb5741e155d830820dbe6cc3e0666ffccf3 (patch)
tree973cf62f5ed8844cb980370f5890d753a1d47b39
parente311e9b7c591d0e612c1598c202212da201054a3 (diff)
downloadgcc-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.cc11
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)