From: Jakub Dupak Date: Sun, 6 Nov 2022 19:49:17 +0000 (+0100) Subject: gccrs: ast: Dump slice type X-Git-Tag: basepoints/gcc-14~980 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fb0747cc2c11aef79d7d53d70cfedaefde78e3;p=thirdparty%2Fgcc.git gccrs: ast: Dump slice type gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing slice visitor. Signed-off-by: Jakub Dupak --- diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index e5e051a46d88..b017c6ea592d 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