From patchwork Tue Feb 21 12:01:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 59988 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1831579wrn; Tue, 21 Feb 2023 04:24:33 -0800 (PST) X-Google-Smtp-Source: AK7set+xIEMDJSIAIbznV58buHUYA5mGtOEW3S3g1kknL5YDBx+SZvxjrNStbkjjxC/jlbx2alZo X-Received: by 2002:a17:907:ea2:b0:8aa:f2f2:7543 with SMTP id ho34-20020a1709070ea200b008aaf2f27543mr17377402ejc.29.1676982273828; Tue, 21 Feb 2023 04:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676982273; cv=none; d=google.com; s=arc-20160816; b=VHP+ifhO6dq+Z5vZJ9ql9T/GpMnupnG/Lj7ejxIn3nIktXaILw2qMn8JSXCkuIiHpY isfjdin1LMMos+NJuPr6ahICxdUCUebt1R+MsxzWkfm6T7IUf0Q4axPMIa4RZt/5OdFf 57YC+E3Cf0ObjzLeFImsOBl/cw74EZYk5WZGaWuVge2DfevbODJ4+6QuRzv//BpMkxFN DNtWYI7Gp7WdNy7gUwlN0RnkZh7WUNCkmcDcoqhMirRDIqXGxfINkz+hAk4apHGFVl73 eQnbONhq1BYck+7AGKiCI4tfJ4p5iptCsS4WlinuPAmhOJ5zFmM/O1UqySMRsmqb7dJa JkPQ== 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=8dW4H40ntCuCTMH5mJ9Wz48yqLw+vd7e/YsoIF/P540=; b=aPSCsz670QawMuiXnELZnPFYpMXaKpLK1msStT9wMv9rh20W90BsxI+s/yyS7TWs2H QV7MSozKGMc3EA6qmMWVCKA+1QcNmh7JcTku6TH2uvpPJnS5j579lOpYF+DEBbW7NohS I/w9QC01UhHcXQe50tCvkfpqdC4NECFklFcodtLo07qvj8RKFlKYyoq+9s8/R+WmavC9 5WA+6weeqZY2his53g7IwbYbvkpaOIui1okFLmvQLZK/miuetIyDfFEJUilCRQSRe37c naJ/aUxrSfzjmv6wCeb51WJXMozH43DnUFia5GT9I8WFLixz/SxGyBV+Re4dQwGfdGhx ZmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=GY97Dg5Y; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 17-20020a170906015100b008cf961a7bdesi9477872ejh.598.2023.02.21.04.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:24:33 -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=GY97Dg5Y; 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 0A162384C917 for ; Tue, 21 Feb 2023 12:09:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id A78F2384DD00 for ; Tue, 21 Feb 2023 12:03:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A78F2384DD00 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-x429.google.com with SMTP id v3so4084756wrp.2 for ; Tue, 21 Feb 2023 04:03:59 -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=8dW4H40ntCuCTMH5mJ9Wz48yqLw+vd7e/YsoIF/P540=; b=GY97Dg5YRIRzDlxAu5fS/b2JEX53+bdObLWPYqcYdGnPV3Hn/h2trlmuA6jnr02BkA s0z7+uxmQetdZ9L+upBmVBEW269tmHDU2A9xf+iguKdUs4vWiDvG5a0JXA4NcdZ+enC1 dGMC8Sijs4zuBgzamLpLg/D8ZpPHKM5ezWHiFNImjmVFegrEm61n+mLiION7GCmEhAhE D/8tU6tWuhYxSYVOy49m4F4Sylm19wrw5cDLI74mDBSfZXCoyG2tKjrcgfbsgKlTkCY1 PdbWA4Gd0SjPmoOYJK9HWO+6Ui89WYVnpUUOLti79rYH+aYXK27zTb86OXzijuOyjwsY Kd6A== 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=8dW4H40ntCuCTMH5mJ9Wz48yqLw+vd7e/YsoIF/P540=; b=SlNnAcQWIZ2SrVXFfdhJtbMz4Bp1He3i325dG8wWmLj7D6DEOhwC1aXhjnBXUEA1Hy SvtgG6+0H9MJwvsfmTa/ZfXxX5Rcrivcf3gef0cSfDuXlsCzIcythnyPlKoSCFSfJzUq JxJxtIrxMfBAWxguk0cjyc5eTFu8NM7qgVd7goLhmzzRmThX89C6M5TRpQ6iMFnlWixC WnpkL2RGlsZmsS8jjEy/xL/OAU4NM2MZ3vgS6JxtM2OcskeetL/Td/U/pfBB70Z9JfkE uFl723hTp7slTwWNQveajLiq2qGRB1ke0VxznP8qyPKMudgc/NqMROD0KH48FeLPbFP0 Qe9Q== X-Gm-Message-State: AO0yUKWonPOg1IU/CIoMOflIQIv1HQ7OMAttxVdIuLzk0TMiODnu06bK FA7TSlFPjvwkqt1PGS/zOTNclKACt9uFZPdvGw== X-Received: by 2002:a05:6000:1210:b0:2c3:eafd:143d with SMTP id e16-20020a056000121000b002c3eafd143dmr4675964wrx.69.1676981038335; Tue, 21 Feb 2023 04:03:58 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:57 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron Subject: [committed 043/103] gccrs: Add missing fn_once_output langitem Date: Tue, 21 Feb 2023 13:01:33 +0100 Message-Id: <20230221120230.596966-44-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.9 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?1758443364503285230?= X-GMAIL-MSGID: =?utf-8?q?1758443364503285230?= From: Philip Herron gcc/rust/ChangeLog: * util/rust-lang-item.h: Add handling for `fn_once_output`. --- gcc/rust/util/rust-lang-item.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index c7e0e5c811d..02eeaee60df 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -75,6 +75,7 @@ public: // functions FN_ONCE, + FN_ONCE_OUTPUT, UNKNOWN, }; @@ -225,6 +226,10 @@ public: { return ItemType::FN_ONCE; } + else if (item.compare ("fn_once_output") == 0) + { + return ItemType::FN_ONCE_OUTPUT; + } return ItemType::UNKNOWN; } @@ -305,6 +310,8 @@ public: return "const_slice_ptr"; case FN_ONCE: return "fn_once"; + case FN_ONCE_OUTPUT: + return "fn_once_output"; case UNKNOWN: return "";