From ca06115eac10f17d69bb83d84241a4636aafd188 Mon Sep 17 00:00:00 2001 From: Jakub Dupak <dev@jakubdupak.com> Date: Tue, 15 Nov 2022 15:42:08 +0100 Subject: [PATCH] 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> --- gcc/rust/ast/rust-ast-dump.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 5dae38ccef94..2f01c72460db 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 &) -- GitLab