From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 46C3F38518B7; Fri, 18 Nov 2022 23:33:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46C3F38518B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668814399; bh=O92derKC3Inu8WGTWzje4PkPLKlflMNeCsvwGadt8g0=; h=From:To:Subject:Date:From; b=LLPOomTRzglRvwsCwL0VzfBWzvYI5KeKNOYn4TDfQAISnOSw0on1sQFWV7GhSZDOI wjNmO6dBzpf3vlcfYkbptoo3SUqxU3kOPk8FF7o4jz3HsTbMMPp3fC1+qGNp5nYHLW 8suQrTQOctvZlzv8LPQRJBsFUxjVRuSzxOu00x6k= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] ast: Dump slice type X-Act-Checkin: gcc X-Git-Author: Jakub Dupak X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 27136db8fd7b428870f6c85ae4b328f54c8de4bb X-Git-Newrev: f4d78133368ff453eaf60413c697cf848ad1e17e Message-Id: <20221118233319.46C3F38518B7@sourceware.org> Date: Fri, 18 Nov 2022 23:33:19 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f4d78133368ff453eaf60413c697cf848ad1e17e commit f4d78133368ff453eaf60413c697cf848ad1e17e Author: Jakub Dupak Date: Sun Nov 6 20:49:17 2022 +0100 ast: Dump slice type Signed-off-by: Jakub Dupak Diff: --- 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 8e2a8c6beba..3f5dada0a2b 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