aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2022-11-06 20:49:17 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:46 +0100
commit59fb0747cc2c11aef79d7d53d70cfedaefde78e3 (patch)
treeaf2d13f036bbe78a3d84b202229b4b5a27a26373
parentbd2240d30f802d86d39f12dc73321cab6aa0a0ee (diff)
downloadgcc-59fb0747cc2c11aef79d7d53d70cfedaefde78e3.zip
gcc-59fb0747cc2c11aef79d7d53d70cfedaefde78e3.tar.gz
gcc-59fb0747cc2c11aef79d7d53d70cfedaefde78e3.tar.bz2
gccrs: ast: Dump slice type
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing slice visitor. Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
-rw-r--r--gcc/rust/ast/rust-ast-dump.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index e5e051a..b017c6e 100644
--- a/gcc/rust/ast/rust-ast-dump.cc
+++ b/gcc/rust/ast/rust-ast-dump.cc
@@ -1606,7 +1606,12 @@ Dump::visit (ArrayType &type)
void
Dump::visit (SliceType &type)
{
+ // Syntax:
+ // [ Type ]
+
+ stream << '[';
visit (type.get_elem_type ());
+ stream << ']';
}
void