From patchwork Tue Feb 21 12:02:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 60046 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1842382wrn; Tue, 21 Feb 2023 04:50:03 -0800 (PST) X-Google-Smtp-Source: AK7set/AQ8cUyhWHM3kinGZ3Wrjt23rPQBDrgAGSJVaaSI1b1rLxbwu0Hn8HrrvvQXB5nW2Hn2Z5 X-Received: by 2002:aa7:c306:0:b0:4ab:15d9:2dae with SMTP id l6-20020aa7c306000000b004ab15d92daemr5426045edq.14.1676983803298; Tue, 21 Feb 2023 04:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676983803; cv=none; d=google.com; s=arc-20160816; b=NCLlTY6QiRfdonIwKnqQL4R7ViEbCqw4nxLX6AeFUUJtipKM/SMyxpfNonu8IO9YPC GYwheLM620YjZrXw3JAJqmd8/vbwuQyGM35/OGdd4CWHXN5P1eja2KtT60J94fViJnOn 0TUd1ReYEjbjY/BxCytLzSl4hr3rNt4cYv3KYk5IfBcvQlonnntWcq1OJnovfbOdzNpH VzcLJSykQufUbP9ZgdqeuFLMvd9w6lg19GmgpOyiTsVGAqDwVCbCm3npMyGjCTCyUdy1 RFMAca59/2oV8AkAOHM8gsAlYhod6oxoZrrYFZAiYyBwz8WZxHkQBftM71552cY0K9by LwMQ== 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=L6eAtmwzk72vX5Jk6XCvWsL8z4TEucBYbHfJ50Qccy0=; b=LMaftNo2qNzT/0GYfjNX5KhikoISwfKbIP+wJxiXyAnldznPRsbsLtLuohTTMvMEBu y7RJtc6/w6IBPENvDcUsQ/IxY5PHRpGYnzZr1R6806cvK6TulsHiwHwhXmTogu594pvG IB2goTfdwUFiLaILHItdOHUaQcWUPFA+rtlFdH5X//1eok6wjGf/glo03+vmSsdpbd8b 9/QdET6wPLGY+TfUAglseQFrqhKeTXMY3P2OUbm+ETkxyl/7xXSssP/2WC37TQJAzuZy eWXgVTEleM1zdVafTulyqzIWMYsaFUUSvbg1SacBEIlm0wYLirNmJKU37hRyRjhMQAYd LA0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=EB+6njac; 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 m3-20020aa7c2c3000000b004acbe85e42csi18994022edp.414.2023.02.21.04.50.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:50:03 -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=EB+6njac; 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 23A1C3894756 for ; Tue, 21 Feb 2023 12:16:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 40885383907A for ; Tue, 21 Feb 2023 12:04:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 40885383907A 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-x42f.google.com with SMTP id c5so4851331wrr.5 for ; Tue, 21 Feb 2023 04:04:27 -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=L6eAtmwzk72vX5Jk6XCvWsL8z4TEucBYbHfJ50Qccy0=; b=EB+6njacdB8nOmLFwt0N7JLtfLUi8DBrs/VwkvICob1IfcPzYyP3241FXuO4B2DLJr bASABH3qvIis8YTE8X75Kft7tluqtIpHcEjDlGw2TZaksYrQtpnwII57npaNgDUGvb8C 6guP7d4M4XfqRBv3CH4YEJhsbfyvuFyv57d0isLUwlgG4JJ6JyBoO5xHBHsrcBUk8jNF NqgvwLlbb6+PdsgzTb/kdtAIEqv67RMYd8gSIdBrSUCWJlu/YrNUd5zmcHatwCAy5tJi pnwWmVrtkz0BLOUILLn5WUfnGtDoXNI3vCZg+XZZARM4neSDV1Ng/W0qSe+9dAiPQeeH DeUw== 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=L6eAtmwzk72vX5Jk6XCvWsL8z4TEucBYbHfJ50Qccy0=; b=IyhFX9jSGIkFFjDVIU9v+A8xqggqfaoqwfKvmP4SAU6R/wQmAbx54ARZSB7b/Naxek jjaieq8tWtPZO1Qd965C5BlEna+3AqGVWCw3jnn8fK6MKXhkw31MHCgt0J08eb/gKhkx yrPxRAWeaewkEV/UdEZ1P8eGJQPGsvB+/7Ktv32BIj3c2NJUm5iB3Xy0fqhEODNFCPj9 puSZrasPFxINEoNtqsngVvDyjcBR9LBcQxbnRJEtQLCmDjCXKO6Y7DgJaL9ax6kd7BJg HDjJkx6UOUwFPtk5yAomWcSTlxzurKDwJ7NqVDn20AE2ldy941e7Rt7DFFcB00cFeZjO jfFA== X-Gm-Message-State: AO0yUKWCsEjT0/ytdLQt4HsQB5Koptla3PBRHyIoJN/9lkovHEELmlDa oqTkRw0/uHus/qe8lWr83IPEKIlXGnG7WhJTMg== X-Received: by 2002:adf:f450:0:b0:2bf:f4f7:be9c with SMTP id f16-20020adff450000000b002bff4f7be9cmr2330103wrp.14.1676981066665; Tue, 21 Feb 2023 04:04:26 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:26 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 077/103] gccrs: ast: Dump never type Date: Tue, 21 Feb 2023 13:02:07 +0100 Message-Id: <20230221120230.596966-78-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?1758444968348173852?= X-GMAIL-MSGID: =?utf-8?q?1758444968348173852?= From: Jakub Dupak gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing never type visitor. Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index e6d6e070709..3af4895269c 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1585,7 +1585,12 @@ Dump::visit (TupleType &) void Dump::visit (NeverType &) -{} +{ + // Syntax: + // ! + + stream << '!'; +} void Dump::visit (RawPointerType &type)