From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id C9BC238515F1 for ; Tue, 21 Feb 2023 12:04:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9BC238515F1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42e.google.com with SMTP id r7so3993046wrz.6 for ; Tue, 21 Feb 2023 04:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=QF83OxrRWk1AKyEJS60vF2ZB2PDNOhaYtv6g19mPX1o=; b=AjXIFdssUfKp52wLRj5I5kIK+8GmfhaCEt/63R9jadeWL2AoBxKUH7OSQJlQKdOQfU /eMyvSdQFRjykHG9skcMGshHQ4eb7OXhclRZF/mh3/289vcb/oMNIGTZSVFnXV5/1HWX xigirIm/hDoM13n3fJTSOCjKmJAcuJnoPKrbZYS9JwCcQTF5snNLJ0AeXi670u3ORjVF 1YSbjDchIFpE7MU+DJhAYLyj2VhNcAwGa2BKjBF2hLRRDTVtlJIa0Xh7DgxRhj3QwcMZ JedKMOQ54mI0sCKN8JSE/JEy2l8c8OiuGgUa82h4X51EeD7asnpJkeHjwwCWuzeTdOhx J6Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QF83OxrRWk1AKyEJS60vF2ZB2PDNOhaYtv6g19mPX1o=; b=U0VCoZ4EoxJjFjWJjEnIQpLPCBl7lb7hyIBUN1LTRqUsAmprlpzPVODZv34XrdUrDi 6xDanQqRqinDUQoCksGKxYXJwGE13hAXyNQIy337X/oPSGgwUWhDjpf9r/hV/+lNMtda M0weVho19jURvOUDJatK7EiZEnFdFpo476AjYZ8NiI+rpZiInMulQwZQTHrtxbDT/3Yq HhVo+B1CaU9dDMwRiBgN2XCN8Vmy5J8FlR2xwbj6X1ZriKJYHtAV+lRC8xM7Qb1N44G9 kwI64mSqgKRawMxwbXV+drCQ1liw+90gO+BDlnCtdXwnVln5iaU21NqyKIXuR+BPhoKY OTWQ== X-Gm-Message-State: AO0yUKU9SLhZGg34JAPVTIx5r8eTTZYJxzHwYwwcNepwkx/uZQP7IxoQ VEN3e+a5OtpMvNNtoiIe+hsGs2YJzSG1p5+BMg== X-Google-Smtp-Source: AK7set/rLIg0q1e4eANrPyreVzztBHHN5bewZoSQh+SsuOVPlp7dU8ezYvBiwFqkJYZkOzXqcw6qVw== X-Received: by 2002:a5d:5489:0:b0:2c6:d392:5579 with SMTP id h9-20020a5d5489000000b002c6d3925579mr3096116wrv.16.1676981064474; Tue, 21 Feb 2023 04:04:24 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:23 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 074/103] gccrs: ast: Dump slice type Date: Tue, 21 Feb 2023 13:02:04 +0100 Message-Id: <20230221120230.596966-75-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Jakub Dupak gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing slice visitor. Signed-off-by: Jakub Dupak --- 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