From: Jakub Dupak <[email protected]>
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Add missing slice visitor.
Signed-off-by: Jakub Dupak <[email protected]>
---
gcc/rust/ast/rust-ast-dump.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index e5e051a46d8..b017c6ea592 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
--
2.39.1
--
Gcc-rust mailing list
[email protected]
https://gcc.gnu.org/mailman/listinfo/gcc-rust