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 3C05D383E2A9 for ; Tue, 21 Feb 2023 12:04:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C05D383E2A9 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 l25so3760083wrb.3 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=nknqV2lqRiMaMIJECwiHFZijb8s/LII4xqbDY6rbdQzJIFUQkWa+mImCWSaApe1tkU An2eBGYJxutdXlNr5UcapxEFoM/toV7W63c2QDzLK6oB7ZPzcbLQfPm1wqL7xMDtumi/ I9KhAIr+8bL4yyiywNTh95SX9PTqf236IuJSZ6srpBXHz69cvMowp6lrRnb/nramOmq1 o5DFkduZTT0C4kd7g4DbNsHTBBWfqjpJa/UolsoNkkS+lKdjl6js3NSkCgYqxT6x0c6R QGQJA8cB0I3vS8tKftpJEjfBtWvh8/KtrCbWV6yQq9zJbwJpqGbX3TIoJJLqsiFdoAQ4 wE7A== X-Gm-Message-State: AO0yUKXRDD9zlCedW1/1NniOmrVgW4eoaBUsVy2c7teQBt9Rz+qRMp6r Te2k/gJHFiFuC6ZLYX434HtbiZ6y7z6AXgJJ5Q== X-Google-Smtp-Source: AK7set/qe69ySfwtIK1w8Se7BtUNh+izC1Fc5MlbzkDZZv1AD4IRJUUzl5cOAw1mz0oZne96xGPfDA== 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> 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 | 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 &) -- 2.39.1