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:
e311e9b
)
gccrs: ast: Dump trait object type one bound
author
Jakub Dupak
<dev@jakubdupak.com>
Tue, 15 Nov 2022 16:02:00 +0000
(17:02 +0100)
committer
Arthur Cohen
<arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:49 +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
8e06bf3
..
7d62571
100644
(file)
--- 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)