From f4d78133368ff453eaf60413c697cf848ad1e17e Mon Sep 17 00:00:00 2001 From: Jakub Dupak Date: Sun, 6 Nov 2022 20:49:17 +0100 Subject: ast: Dump slice type Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/rust/ast') diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 8e2a8c6..3f5dada 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 -- cgit v1.1