From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7905) id 9CC00384F4BB; Tue, 21 Feb 2023 12:01:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CC00384F4BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676980896; bh=3gC4k36Vz7OZL6OHwr7/T0qekVuplrF9NQJXIVgAaCI=; h=From:To:Subject:Date:From; b=gj51cALHGqZPD3yMWxC7BMA1esV55f0KgsB9qihFJrW9m6dqP0COJBxxMfY9jJpSM xIMhGPMfBMX97m9XJa+8pCdPzGwvURrJbJ375ZjRuOAuaUnblVfRhk39FGmTI2JM6t gn3IIxp6iJb3M+KGazO3YFQuQOkEsnv04csRFLmM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Arthur Cohen To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6228] gccrs: ast: Dump array type X-Act-Checkin: gcc X-Git-Author: Jakub Dupak X-Git-Refname: refs/heads/master X-Git-Oldrev: 59fb0747cc2c11aef79d7d53d70cfedaefde78e3 X-Git-Newrev: 140a2aed7e1cecd162cc975b6d745db38b5d8d31 Message-Id: <20230221120136.9CC00384F4BB@sourceware.org> Date: Tue, 21 Feb 2023 12:01:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:140a2aed7e1cecd162cc975b6d745db38b5d8d31 commit r13-6228-g140a2aed7e1cecd162cc975b6d745db38b5d8d31 Author: Jakub Dupak Date: Sun Nov 6 20:54:40 2022 +0100 gccrs: ast: Dump array type gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing array visitor Signed-off-by: Jakub Dupak Diff: --- gcc/rust/ast/rust-ast-dump.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index b017c6ea592..9f73d0565ac 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1600,7 +1600,14 @@ Dump::visit (ReferenceType &type) void Dump::visit (ArrayType &type) { + // Syntax: + // [ Type ; Expression ] + + stream << '['; visit (type.get_elem_type ()); + stream << "; "; + visit(type.get_size_expr()); + stream << ']'; } void