aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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