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:
7ed4a0e
)
gccrs: ast: Dump parenthesised type
author
Jakub Dupak
<dev@jakubdupak.com>
Tue, 15 Nov 2022 14:52:34 +0000
(15:52 +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
0ae57fd
..
8e06bf3
100644
(file)
--- a/
gcc/rust/ast/rust-ast-dump.cc
+++ b/
gcc/rust/ast/rust-ast-dump.cc
@@
-1635,8
+1635,15
@@
Dump::visit (TraitObjectType &type)
}
void
-Dump::visit (ParenthesisedType &)
-{}
+Dump::visit (ParenthesisedType &type)
+{
+ // Syntax:
+ // ( Type )
+
+ stream << "(";
+ visit (type.get_type_in_parens ());
+ stream << ")";
+}
void
Dump::visit (ImplTraitTypeOneBound &type)