aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2022-11-15 15:42:08 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:48 +0100
commitca06115eac10f17d69bb83d84241a4636aafd188 (patch)
tree8d7eb3b199a388eabc603b8ec1c698f91e46919c
parentae1f6b3a96dd8cfae914ab55411b769d245e48f9 (diff)
downloadgcc-ca06115eac10f17d69bb83d84241a4636aafd188.zip
gcc-ca06115eac10f17d69bb83d84241a4636aafd188.tar.gz
gcc-ca06115eac10f17d69bb83d84241a4636aafd188.tar.bz2
gccrs: ast: Dump impl trait 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.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index 5dae38c..2f01c72 100644
--- a/gcc/rust/ast/rust-ast-dump.cc
+++ b/gcc/rust/ast/rust-ast-dump.cc
@@ -1622,8 +1622,14 @@ Dump::visit (ParenthesisedType &)
{}
void
-Dump::visit (ImplTraitTypeOneBound &)
-{}
+Dump::visit (ImplTraitTypeOneBound &type)
+{
+ // Syntax:
+ // impl TraitBound
+
+ stream << "impl ";
+ visit (type.get_trait_bound());
+}
void
Dump::visit (TraitObjectTypeOneBound &)