projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca06115
)
gccrs: ast: Dump impl trait type
author
Jakub Dupak
<dev@jakubdupak.com>
Tue, 15 Nov 2022 14:44:48 +0000
(15:44 +0100)
committer
Arthur Cohen
<arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:48 +0000
(12:36 +0100)
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
patch
|
blob
|
history
diff --git
a/gcc/rust/ast/rust-ast-dump.cc
b/gcc/rust/ast/rust-ast-dump.cc
index
2f01c72
..
1d593d4
100644
(file)
--- 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 &)