Message ID | 20240130121026.807464-76-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 gs7csp1187665dyb; Tue, 30 Jan 2024 04:36:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnV11sBRPhpIjaFXIwrxzZbAm6WHdNFjoZGsu1FsLk/g3ScDum5Uk2i38dlIEUS9Uv0zcP X-Received: by 2002:a05:622a:1ba3:b0:42a:6eeb:62d1 with SMTP id bp35-20020a05622a1ba300b0042a6eeb62d1mr8085033qtb.75.1706618179194; Tue, 30 Jan 2024 04:36:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706618179; cv=pass; d=google.com; s=arc-20160816; b=RHigWMudqdXbA9OZgqkYgQRLzuCEBftsAznOEE7O8Mar+9n/v2CWy6OsesFtDLabtj p30tcyy72zhdjUTHS/eA+GHCoN7u9A764LdfW9zHLXzGW4ujtuXU2YEq9gOlFkWvw15u fVpUOe4kk6nOM+RAkBgZdIk9HM9X/qrPFrs3IxMxQjK0ikK1WRVXfWs574X6Q15IuSkZ imo2GDq8rEKxY3O7uuvGqTApmYA/q43ooNrmHJOjc6owhyvWVCSyGH1IIpE/MvfRLf5v iIuHFzjwFczDH2tvvKRExH3ej1MyLk1cv942v018GzcStO0aOKBIeCJI4GsSOPznUyJm Rk/A== 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=0C9XpHC39uwf4sZaqAE1bofGBEGjgpd5Qp6/+m01U90=; fh=tF/FjG7igJhcOEGq79wqr3ldeoZUVk5V7TNEGxaLUD4=; b=H1D0uWsDMvYwalTcYH5ssmp23QVindpQYgXrrNBLi6bf0nbcnPZISb2zhpxpAC1iVQ offIcR7d1R/0agjHBFJYUPz5sho+5qg1T+L8TWL0dqhptk+3AuuwCZVb7gXAhIkzhq86 fRXHIVbumMS5h92JN6H5eGCQ+4jZfzljmNMcMnWz+C7DG7EfdQaXOdBtQ6ihLN4uC2on kR3qVyTv0cnCdlWHzJRFAbViDNoUN9xoeKsLZ76vLZQYiCpdC7soiFfKTMfWuqJcZWBC qxaqynyKHTYUCQA+SA1a0SPAPKDQaDXoxqFybLm+/0zyvhM5EPEijUkuJE2BrQ1J/XYG 1JKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=S4JrGes5; arc=pass (i=1); 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v6-20020a05622a144600b0042ab8a51daesi1050628qtx.676.2024.01.30.04.36.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:36:19 -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=S4JrGes5; arc=pass (i=1); 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 285EF38393AA for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 12:35:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 71CFC3858017 for <gcc-patches@gcc.gnu.org>; Tue, 30 Jan 2024 12:11:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71CFC3858017 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 71CFC3858017 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616743; cv=none; b=UFAUYqB+PKJfvopj0/CYQtbBMy9srWBOqKwwKWexsG84ZdnOedXB57Pbz9NLDhaRxNDmkDIS7EBqZUtYOKEnkqW26Zgkq5/+vAiZir/XHs4uuYn+Y1jV67Ou5NPCwJa0nXnLSBTdKE7MSXU5vqP7mHN/DviAqa5IjTkOOc+oYY8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616743; c=relaxed/simple; bh=S3YOwqCCm7c9QkMUjB0W0uh7Vv9XBCHq2z2NabdiB8g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NdgZMpXfvunHnZaFVi0co7d3zy70u9WXkd3039+rRqWTk2E+LM5B5aLUQf4yxpd7L5EiPCe2G/v8wgao/2bebs+0iLQ273VaxhPy+lmYv8F1VJdM5fAXoGOqrnwObBjshkcDia79SfL76s/57VXsEPmRKlmjVBkMTJdq0RSk8LA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-339289fead2so3051147f8f.3 for <gcc-patches@gcc.gnu.org>; Tue, 30 Jan 2024 04:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616703; x=1707221503; 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=0C9XpHC39uwf4sZaqAE1bofGBEGjgpd5Qp6/+m01U90=; b=S4JrGes5SVA8zY5758NzwzHIsAzZUuDPZ9rXgOZxx5lYbYBHzYaw93QLfBYQws0ZIS ZNJREG66EhfjnG1CY5H9CWIRNEuwgdU7j1fsrG7nNIfaRaIFEH4lqUPdlDe6tFWHCoAl aI2cbcQZFfCW5AI+UM1Fu3kGCbRRqQ9gQSjg/KdLIfOi5oCWbg/EItq3AYw7tIcqWPt3 YX48qsfG8m/Ebpy+2p+bSP2+sSDEdmwHemupQKyciNU5jifUtC//LedSFsS5YiR6I6Cb Kl2WoJNSwgGK1ZoYVZB1nCM7acVDzfJ0k9Fp1U4XYDAiO7oadWCwitzfpfk93jBn6O1x Ra+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616703; x=1707221503; 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=0C9XpHC39uwf4sZaqAE1bofGBEGjgpd5Qp6/+m01U90=; b=IYzS54fjQ1Dw8aYCnaIFF5IsaX9Rnkq4P3c7JQIEurZ6RKAJxuWBHDlXRWUMWXeWOI a/5KsifqdY+J2AndjQT6rlZJDl6k4OrREVoiwjudfXfR4T+YEbPpmjvtJ/Z8SzIP7KAa zAXmA8ycS4YAkuN0+jtPP1L8KdebIXLcPCJF/9A44n8hclwrWzU3TFOZWk8pLcw7TC5v 6afz3q71MS+ZPaqfk/JCkCTp44jNNuSE8q6PG2P3oteoF+lgU1Y0SF0XeYwy5+ovBgMq cGhtU6sY3GMUdfUNp7Hfj8hEYY2kE9EWmKDebFcba1Vm+vRPEnC+uTp/IS1j6MkTp9W1 kVBA== X-Gm-Message-State: AOJu0YyYbKAx52cZBT8jLl4RU5utQYyJSTEOCKsKciWlbaSna8G6TPPW 9ydV1118GnQiwB6sWTQm5bpES/XAj7Bco7eSEPXjaH0Wi6JXRy8eSIFdg7VTO/WH5sGk0n/yp19 p9w== X-Received: by 2002:a05:6000:184d:b0:33a:f27d:c05 with SMTP id c13-20020a056000184d00b0033af27d0c05mr4037438wri.15.1706616703380; Tue, 30 Jan 2024 04:11:43 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:11:43 -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 073/101] gccrs: TyTy: Fix missed nodiscard Date: Tue, 30 Jan 2024 13:07:29 +0100 Message-ID: <20240130121026.807464-76-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=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.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: 1789518863836941640 X-GMAIL-MSGID: 1789518863836941640 |
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: * typecheck/rust-tyty.h: Fix nodiscard to warn unused. Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/typecheck/rust-tyty.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 8bfa83da8d8..da4b901724d 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -177,7 +177,7 @@ public: virtual BaseType *clone () const = 0; // Check if TyTy::BaseType is of a specific type. - template <typename T>[[nodiscard]] bool is () const + template <typename T> WARN_UNUSED_RESULT bool is () const { static_assert (std::is_base_of<BaseType, T>::value, "Can only safely cast to TyTy types.");