From patchwork Tue Feb 21 12:02:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 60068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1848105wrn; Tue, 21 Feb 2023 05:02:03 -0800 (PST) X-Google-Smtp-Source: AK7set8RGowc55G+w/f+LCYGQiAdUG9o3QZmCv/PDUVyLk7b9wGDeGHEq350J3ZqlKMAssydtRK1 X-Received: by 2002:a17:906:aca:b0:8b1:7841:9f28 with SMTP id z10-20020a1709060aca00b008b178419f28mr15605019ejf.55.1676984523604; Tue, 21 Feb 2023 05:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676984523; cv=none; d=google.com; s=arc-20160816; b=OHFbMPr6oFPkRI8TPJwo2t6udUZuLKU1tbTT/NbsVkf5bBVD2unGbERnFC2E/ju6sI pWmoWSxe2IgO51VbYPiCg5YpFEAgV1uWa72bIW4HVHTe1qGgyylqX8Jj4ajtgCMsUjfE wfnjfTbrP9SNHx0Y2L7fYlOsS3IkzGMfv3Xf9zUSebgcydZws0mHKUKgntjFhT6+wdK2 g4XBrEnijxYgsjrSwAI6hhV5kOACLPqpkwZx26NfztGi2e4aPGM/yYM7s32GcFV4FGVB XmwSYh8FdI+t+wHP++J3cc3UcAPSRfFNtQB4e8GS8M1F86MJx5wnwUuxffXZL4uzWiws 4qFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=qdCYpkb54/RnBEDqNm47/juLUw1FDchgfwQ1zLU/Tuc=; b=ajlNyeOBQS7IqDAJhCYnajYBq9W40tX6qOPRggLJHkBsSRmajFE39L9A1rmjfsUMp+ Zi0N2ZcSa3GCUxumx6BWmkBsaobtCCgc/jG/Hq1aMH8IW99i00Ay3QW6r9V9AkkMQSTK aVJj7Xnjh1aJOjZOwS4ZTGh/cAF1xURzs/t2isW10Cy0EapnzAXw7cGNEqWAuDWioPz2 UTPTB4rPZ4qOe396IBwZO8p/jOkGc9AGRt8PJkGe4xXoJ4KTp0RDaT6nceRPusObWIon 20NjMtpsKaqIY+HVctJ93tp1jLHfjIiPG8xtCD3FmbVWfIKYUf7f/0qNTg8Ka4ibyg/y /5bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Av1TGpmP; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z14-20020a17090674ce00b008c72577b130si11221667ejl.636.2023.02.21.05.02.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 05:02:03 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Av1TGpmP; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F068E3A1BCD5 for ; Tue, 21 Feb 2023 12:22:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id DA079384FB66 for ; Tue, 21 Feb 2023 12:04:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA079384FB66 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-x436.google.com with SMTP id o4so4166424wrs.4 for ; Tue, 21 Feb 2023 04:04:29 -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=qdCYpkb54/RnBEDqNm47/juLUw1FDchgfwQ1zLU/Tuc=; b=Av1TGpmPEtqVwy9CWBjJN4H8caN3z1M9dNSGKAMYbLpp8tSLIPtUHiaoKAV18V0AaW QIP5nEzbIi1f9cuwNXUFTI6t4WYx7JSlWErpU7NFH2Ofw4iFR2Rhuac5V0f3tOC4/2S9 CiW3pktYWz56vCERtijMCWi9rD72YC7Ime8KgmdxRn0rZI1aau5ORiwlONXS6kYqQWU/ 1Y2AbPuBiD7+IJF+zKsn1zLhiMrBJ3xKWE4xEj1EPMMrTFelWBjpkQhInlNOKNm2MqPT lDfARCEjswOsV057IvUL6gUVq88EIHaFdx4SK72q3i8Qx4e+GG/e/Hntt/4hUd93eNhn 8lNA== 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=qdCYpkb54/RnBEDqNm47/juLUw1FDchgfwQ1zLU/Tuc=; b=02oq/qpOr25V8C+9dlrlA0ZoIp9d+tgLzh/Ppyo1hIqLSY0NjpS1QcXv3YTFSo57L7 W6KDcTCBN5L5C683TGO1tHsheJZHak+BZkae5kLlWIhbH/YeZtTKudfe2hDjOH1XXFmJ onSWFp/Dfek2m2WdxvtrLIPn5MveiFOQXaWFBe7O5qTWHPguWIVbL+qkohcne5Yyd4VW tMWGPQ52jYAC4KXDVvqSwpOu92UyeYst/mKYITtZQy5dUAA9UMthKO5gUDP0W0fHMvlA 6dbSV2MybucD4rqBWf4xtR35yOD6Dsf3zGBIn5lLTm9iZruAxjHNauRL1SaqB6xN+BRJ y7fw== X-Gm-Message-State: AO0yUKUx0Id6/fywSBw32cPPIwAdSV+/kxVAScHZNfqEttHsyhZ+GkOT Eyu3nILzBtJHKdMmvFatNGk/o67TSCTMEvgx8Q== X-Received: by 2002:a5d:5651:0:b0:2c3:f78f:518f with SMTP id j17-20020a5d5651000000b002c3f78f518fmr4035915wrw.39.1676981069274; Tue, 21 Feb 2023 04:04:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:28 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 081/103] gccrs: ast: Dump impl trait type one bound Date: Tue, 21 Feb 2023 13:02:11 +0100 Message-Id: <20230221120230.596966-82-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> MIME-Version: 1.0 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758445723717179275?= X-GMAIL-MSGID: =?utf-8?q?1758445723717179275?= From: Jakub Dupak gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing visitor. Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 5dae38ccef9..2f01c72460d 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1622,8 +1622,14 @@ Dump::visit (ParenthesisedType &) {} void -Dump::visit (ImplTraitTypeOneBound &) -{} +Dump::visit (ImplTraitTypeOneBound &type) +{ + // Syntax: + // impl TraitBound + + stream << "impl "; + visit (type.get_trait_bound()); +} void Dump::visit (TraitObjectTypeOneBound &)