From patchwork Tue Feb 21 12:02:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 60037 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1840427wrn; Tue, 21 Feb 2023 04:45:35 -0800 (PST) X-Google-Smtp-Source: AK7set+EdRI87pbdxlu7xt9cWzaz56HKFIMsJlc2b76ZM5k4Ot5/SrHZvr+d9BEqZbzMRvtMVQFS X-Received: by 2002:aa7:df96:0:b0:49d:a60f:7827 with SMTP id b22-20020aa7df96000000b0049da60f7827mr5737683edy.6.1676983535311; Tue, 21 Feb 2023 04:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676983535; cv=none; d=google.com; s=arc-20160816; b=BqZErrcz74u37dNWvq9ALEzRAg1RngzSh4GszewJkVgxAB3OjKhSjP/oNW4g6g25j9 iO0Z2S4CvvLD3+b73Qdv9KoWeXvLyXHjEt9kMUg78M2VcJ7UgWrQ6RJPMoCUJsx5i693 x1/Vg07M3ro2F3kR+0AN/WagdGg1AlL+SVJqGZvTepEGapgm8aUOZjYmdMLwA/rduap1 AvGYhYo/CdnEBQjglOo1zj0nAYeBbHwgyADhNgmXKXiMuf+py0xsIl8s2iWiDlvfK0SO cgM8BDNR514M74qVt/HbCh5mKmzzrDLtgdVn32ykv2i+NXi1DzQ6R5vK1W5f1j4DgAD6 Xe8g== 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=VOk2Xu6mBSLrtumJymSQAz7FVVO2sV3sj4WhdTfRGLQ=; b=DKQBIGRQMNqYMfY68yuyUBoGEBH9F2ol6/XP07Ka/00COtCfrn41LGEoFM0tr72mxk LdULYN9csS5bP9tuilMHHlt4/otIafuzkk7GY9Dlyx1jgNQJ1QH4T61QAJFJq2tdzkSc iyO2Zlj6bYrTL7VEv9plfGjt9XUDJiltQcse/S5ehFIXkBinDAH7FyFZoaadR7+UyAA3 TOV0D3/aM5oP7TVxq5D8RQc9FsbE/n2w+zBZfzBTa0SEfNcfSM46RwLHwgmXKFPfHuDW wF9bqCCg7AIhLR6hU7xZ1k7KruSE0E2zcPFyl8y3+JJPfwOeuFEzL3Mkx7rb4UM/jgyz xn8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ej27rcQp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ca27-20020aa7cd7b000000b004acd0b5ba4dsi5298802edb.67.2023.02.21.04.45.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:45:35 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ej27rcQp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 A81463A22E69 for ; Tue, 21 Feb 2023 12:15:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 79B9C3836EAD for ; Tue, 21 Feb 2023 12:04:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79B9C3836EAD 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-x431.google.com with SMTP id j2so3984311wrh.9 for ; Tue, 21 Feb 2023 04:04:30 -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=VOk2Xu6mBSLrtumJymSQAz7FVVO2sV3sj4WhdTfRGLQ=; b=ej27rcQphzQQ/1uBuyWD88pT+atZfLp0EJ1FusCD9bQ/oPeNtCcGDsZl83Bni4MXZS JZ/Rzz0SWZqt20cCaeafFZ+jehie213xW/t9135j6Ws1UDhBxjbDFFRCYY5WQnGjVGC0 absRAywTau99EAiKYJX9rjL1Slc8SuCR80uoBrvEhruQqgucTj1s0xjgvwxbsssUtXHE azxJzR8L8X34QnSqotdwgxj0nX6jYwxyqZqmMXDckG4ETsNRv8XWkIrFPgiilM4Dg6KD F0tbCTVMRZ4xntWQnnY1G0iOFmtrFYga37rLDMX6dTDNAZWLtQ2/b8k3xuG5HF+Mhcxr U1zw== 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=VOk2Xu6mBSLrtumJymSQAz7FVVO2sV3sj4WhdTfRGLQ=; b=Nl9/YORX03LFrGwQtDof9zQPtmcd2M3CdLx9K8DyiHEFA3PODPWhLH4UUDSM8mFxXM f7b3a+jRCaNPDKbFsHCePp8DPhHavCrI0DVuTjYiqUWi3hypNsoS9hHwOIsm8/zf0HZd a3FjznZGHmNpJRinOjvDLUh1Z6/RkYgLcuNdI7bKUPEItQ8QDuKfM0AHcntKoDP92h1J qKJEL727D8lkCzmu98AnAcjOhtjeuXuotzN2Z23eA797XT2aJ2nxM4RBzK5HSobMe1JP WFW++RGlGh4oZs5apxqHq17TBL56F/Z080ETwFHJREZ08o8KPBPhj0AVrk0aLEH3nzB0 rv4Q== X-Gm-Message-State: AO0yUKXoDQgM9Uc8SLDe+d4S/uM8t29iLnkK2LT2BZ4n0QWRSjr78Zy6 LmrOm93TM+W8zttgprp+IhooVdI+itY41QyMmQ== X-Received: by 2002:adf:f303:0:b0:2c5:5f9e:b0 with SMTP id i3-20020adff303000000b002c55f9e00b0mr2395558wro.8.1676981069864; 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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:29 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 082/103] gccrs: ast: Dump impl trait type Date: Tue, 21 Feb 2023 13:02:12 +0100 Message-Id: <20230221120230.596966-83-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.3 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=unavailable 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?1758444687801442332?= X-GMAIL-MSGID: =?utf-8?q?1758444687801442332?= 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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 2f01c72460d..1d593d4b749 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1610,8 +1610,16 @@ Dump::visit (TraitBound &bound) } void -Dump::visit (ImplTraitType &) -{} +Dump::visit (ImplTraitType &type) +{ + // Syntax: + // impl TypeParamBounds + // TypeParamBounds : + // TypeParamBound ( + TypeParamBound )* +? + + stream << "impl "; + visit_items_joined_by_separator(type.get_type_param_bounds (), " + "); +} void Dump::visit (TraitObjectType &)