From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 269D93858439 for ; Tue, 21 Feb 2023 12:04:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 269D93858439 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-x432.google.com with SMTP id c5so4851617wrr.5 for ; Tue, 21 Feb 2023 04:04:32 -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=7n4qdLuOaMxwsGF1Vz5HNRRVSSn5HYSuES4ZbSs1CNI=; b=PT+EY/PiV/WpxR5+awUH2Dl4nh5K9FJ/cmYDstA6iLs7wDKxC8TNKcn58aGfxA7H5b K3HscjvRfNUoRHdSZclqjlvaB+SKdYi49aG9NWcub01QLwXhFPl5uGKdS1osuI8ZPPN5 7RXm/2kZ2WX/x+VlNST+4EZgJ8NRbH4RodiaNDaE8pZvQdEycceDIeyLeM+f4dtToKGC BeMQiJSUgsfVkFE8i+pX1BFjLqnBJ5JllUhJsfP47EJwbTnjMWiDrOsdt3BcuwuXEBOL CZwEHxrn6NbwBItwdDDnt+JrVTAIkvVjjvVNHZDOEeZK5E4b9U9jytjLDQQZ2cebpHlo +xAA== 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=7n4qdLuOaMxwsGF1Vz5HNRRVSSn5HYSuES4ZbSs1CNI=; b=oDiDax15OoOSvEuEGkW4GawPbbQSswk/6GKHnLWLYmUOhHySI34lNhdkpBVqskWUJC NqDwtFSZX9cp71nQoB7zfJDCPVEVSN3E+7SUOlOY46ufPf3bFgTYeOSjkFITxZRgD4yz yxU5C2UasSwkUg80pbThdQBXRGtj+uc0oKFK7+1p3W2eR+eMI60eWAVQISfQzbY4AUZS r7NV1X0oHFzak+8IhV8Rb70plkZqfESXb/XC3Q9VAmo23LXcau+NSxGL6ouoYjlaOqzL vCuljQYQbJlqLlvI3Eht0QLgz2v1xYzXcVS2GxdInmzK1/ULGy9tdFYiljswaffiAaAm 8X1g== X-Gm-Message-State: AO0yUKWL3fIrwKNitDe2+8f5IC81vuUWSuqHbEj16yXudhQjbWeCx9UD aqc7xADJll7O5xAc0qdgYDl1 X-Google-Smtp-Source: AK7set+pV6Ywg5wp5mbT2ArfW+PvOQsSmYVERH3JA4xWARIh8ErhoDRv5mdJrXVLyc5ugjBTOBTZBg== X-Received: by 2002:a5d:678a:0:b0:2c5:594d:d9f7 with SMTP id v10-20020a5d678a000000b002c5594dd9f7mr4076921wru.63.1676981071770; Tue, 21 Feb 2023 04:04:31 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:31 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 085/103] gccrs: ast: Dump trait object type one bound Date: Tue, 21 Feb 2023 13:02:15 +0100 Message-Id: <20230221120230.596966-86-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.8 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 visitor. Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 8e06bf38a6a..7d62571b778 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1656,8 +1656,15 @@ Dump::visit (ImplTraitTypeOneBound &type) } void -Dump::visit (TraitObjectTypeOneBound &) -{} +Dump::visit (TraitObjectTypeOneBound &type) +{ + // Syntax: + // dyn? TraitBound + + if (type.is_dyn ()) + stream << "dyn "; + visit(type.get_trait_bound()); +} void Dump::visit (TupleType &type) -- 2.39.1