Message ID | 20240130121026.807464-89-arthur.cohen@embecosm.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1190169dyb; Tue, 30 Jan 2024 04:41:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlGTv23JlKYt8mIepIngBm20qOUGe35LCsWEeXSgyU7TfOAL/T7nLtqyUB3Aqiv7GqcQ/v X-Received: by 2002:a05:622a:1c3:b0:42b:2fd9:b17e with SMTP id t3-20020a05622a01c300b0042b2fd9b17emr732815qtw.75.1706618482548; Tue, 30 Jan 2024 04:41:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706618482; cv=pass; d=google.com; s=arc-20160816; b=DdBq74q+3vQDN9EMMpxKBEbK1H5TFs20vJnBDMkom+vMevl1SsLV+RtOyPkJQNbjLI fnAx0KzVji+VODFvvcwbT2fwWK3AIaZpz3hBXMRjPRMRa6gu1Egot66DCA3KGv5Evn9q NbhQtSE8oX4CUiZWQiSjPT/ezseJf7MmkB8Ex1ou0xKk9L0srxjVoVOgAfBuf10SPDSl 9n0E0R3x9XwswiyjePUXvpaJIKE5ceUA4tosPVKaIr+FyWSNFKeIV8n+o6Ikau0PkXAf Jbuz3DXNj8nRcFoVQ7lWq/vb2grCez+u6WNT+HPF7pEa6pVyYeeAQbKL7AqOFe472HTC cjeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter:dmarc-filter:delivered-to; bh=8nxhuSYmYUi2biIvpUSM4Sr3ZLCRrNYtsBtLZk3rGpg=; fh=tF/FjG7igJhcOEGq79wqr3ldeoZUVk5V7TNEGxaLUD4=; b=JtRdkB+KR5cTxcxn5CFe1BcEGjjN8EGX6WzHVb1LKlKiIt82xc6tzargqOM6IHIXwO ulWVgPPQKAgTvFniR9mEcMZXXicFWmwq52Zej77UQVGtF3q5SJ5oW+bguu1OLeNNSgHW GKNxkiqURnkkq3fFipUiLaHS5fXRyL1rLu1fERuiJPjdv4YhShSYUUQlNQ1wd/xklc+O +l1VL4fGrbfvw+d76Nv9OG1phb+YqZLp7D8IGcntuI5bmV5/tjFqRj9L1UCCM6yzSBDL 863sQEItvVosdEVXrf5aFu9pvbqi4NLsn506hT40DGznfqy6BgErPRvQawvnEP8bYGOE dAcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=OIeZPT13; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id t9-20020ac85889000000b0042aabe69406si3275535qta.445.2024.01.30.04.41.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:41:22 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=OIeZPT13; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 6DAA3383A60A for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 12:40:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id DC903385771B for <gcc-patches@gcc.gnu.org>; Tue, 30 Jan 2024 12:11:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC903385771B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DC903385771B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::434 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616762; cv=none; b=QF6SujnsNb9bu6ootr7xA+pGn4NSf8xUYWuVhPNyITHRz4qeHLVdL+wtaVuFYfC/ki1BDGdvrle/BucAOOQ4miTXiORbHwJyEvKnTE7+6m7HetBL0yy2tBB/DFKhcrLJU+RNFQsVMdB3RZxxvTXroeXAHyaaSacOCx9ZVqwxbZ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616762; c=relaxed/simple; bh=SwsdehIIXopaxo95WKAxUaBuDLIxl19sNBc8bxv0Ww4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tTayHOFjM9ZMlQtbnoXMOXtbvJWzkXZEDV9jVsk3u48Z6UFT45WaASUnu1Q0D9Payx8QY+DXShZRu09ylQj2edhJyCGFMlHyLnL8EFoAwIcNZY2nrYA680LSFPuWT3vR0GfHRY5okGr5XDi9giCzZ6roe0c80qsgeQOe+QJ4F6g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-33ae6f4fd78so1765550f8f.1 for <gcc-patches@gcc.gnu.org>; Tue, 30 Jan 2024 04:11:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616712; x=1707221512; darn=gcc.gnu.org; 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=8nxhuSYmYUi2biIvpUSM4Sr3ZLCRrNYtsBtLZk3rGpg=; b=OIeZPT13b8BTY6/yXp1RRT9qZfJG9k5EO7GsT6U2dKgdFHulpxCDgkeIK3AbFWE6eS A+3fjSLg3daV9+73Tdc4o52W6h+cjFvgy5JnmWOry1HRWbsjTgv1n+752MbYQ+Gbk+9w kdnjL+CSkdFHY7o5IuJe4RclNyzYBbaW1opE5/h5DZDhI6g3gv5a+f0MeYOi3cTSQ3PH FWopIUQ4Tbv/IIUNdLvkBLNgD3MAf/o4k/YQfthDyQouVOResGmaclPOc7n/unOMeHLd YvVQSKOBROlb9iv/fycFZ5zJDQ+L00qZ0wpM8M5aYitb4alUz7dqCR10qv5fugTlkEup ypXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616712; x=1707221512; 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=8nxhuSYmYUi2biIvpUSM4Sr3ZLCRrNYtsBtLZk3rGpg=; b=Rv36ewoP8PL1WUO2fLSxPjt/i8fQ+BvJURUROgntssVqz4VUjmxX5vI/N9Sie0Oufa hwNabQYunL/PPHhScsWi53CcpC/ky0QacM48+47pF6GOJBC/PIBfqqTkQbh1lEUzuWLW eGQVGc5KaI1x/Iw7eHHTULmcwBaMn6PWqp7kPxhDF9IH06NutIkRaVV0kzp/s5I3ArbK +ARDbZ/4wT2ALrcAQW1li+prQ6Yi44B28wmriwfWJG8GMn0PBO5NtA0zECnh9JKq/nC6 ms+VurJN/sNXsb622C1uNE2AbFSLlmZELhnYJKNRbdWHHrQCM6NGTETSvvHo701HHEtN AycQ== X-Gm-Message-State: AOJu0YztbJ66vtzOmaEpFHCktYX84ovQQSF8XGAQoRbQbRDESb2o7def LtSezoFUgKiSAEKSZLFNKUQYpACjp7VxtR7HuQgBd5fEnQ3rKrtz8mQBlgf0OI+q8XNZ4ZVrFC/ ykw== X-Received: by 2002:a5d:6a0f:0:b0:33a:e7aa:2fd5 with SMTP id m15-20020a5d6a0f000000b0033ae7aa2fd5mr4053252wru.58.1706616712085; Tue, 30 Jan 2024 04:11:52 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id f9-20020a056000036900b00339307d9d31sm10569894wrf.112.2024.01.30.04.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:11:51 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak <dev@jakubdupak.com> Subject: [COMMITTED 086/101] gccrs: ast: Lower 'for' lifetimes Date: Tue, 30 Jan 2024 13:07:42 +0100 Message-ID: <20240130121026.807464-89-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240130121026.807464-2-arthur.cohen@embecosm.com> References: <20240130121026.807464-2-arthur.cohen@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.2 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, T_SCC_BODY_TEXT_LINE autolearn=ham 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789519181763885565 X-GMAIL-MSGID: 1789519181763885565 |
Series |
[COMMITTED,001/101] gccrs: Add visibility to trait item
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Arthur Cohen
Jan. 30, 2024, 12:07 p.m. UTC
From: Jakub Dupak <dev@jakubdupak.com> gcc/rust/ChangeLog: * hir/rust-ast-lower-type.cc (ASTLoweringType::visit): For lifetimes. Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/hir/rust-ast-lower-type.cc | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/gcc/rust/hir/rust-ast-lower-type.cc b/gcc/rust/hir/rust-ast-lower-type.cc index 5cea71f83a2..a0178ebf490 100644 --- a/gcc/rust/hir/rust-ast-lower-type.cc +++ b/gcc/rust/hir/rust-ast-lower-type.cc @@ -199,6 +199,13 @@ ASTLoweringType::visit (AST::BareFunctionType &fntype) { bool is_variadic = false; std::vector<HIR::LifetimeParam> lifetime_params; + for (auto &lifetime_param : fntype.get_for_lifetimes ()) + { + auto generic_param = ASTLowerGenericParam::translate (&lifetime_param); + lifetime_params.push_back ( + *static_cast<HIR::LifetimeParam *> (generic_param)); + } + HIR::FunctionQualifiers qualifiers = lower_qualifiers (fntype.get_function_qualifiers ());