From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0450B158287 for ; Sat, 17 May 2025 15:08:59 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E363A343220 for ; Sat, 17 May 2025 15:08:58 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id CC6311103C1; Sat, 17 May 2025 15:08:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BEAE61103C1 for ; Sat, 17 May 2025 15:08:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 664AD3431F0 for ; Sat, 17 May 2025 15:08:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0112C17F6 for ; Sat, 17 May 2025 15:08:56 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1747494424.eb4129a37e08da19162f1c487f8891661f9f767a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/, dev-lang/rust/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rust/files/1.87.0-znver.patch dev-lang/rust/rust-1.87.0.ebuild X-VCS-Directories: dev-lang/rust/files/ dev-lang/rust/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: eb4129a37e08da19162f1c487f8891661f9f767a X-VCS-Branch: master Date: Sat, 17 May 2025 15:08:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 621229c3-ea96-4372-b150-ffe715feba17 X-Archives-Hash: cca089f36a8f9fbf1b4bc030ff392208 commit: eb4129a37e08da19162f1c487f8891661f9f767a Author: Sam James gentoo org> AuthorDate: Sat May 17 15:07:04 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 17 15:07:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4129a3 dev-lang/rust: ignore must_use noise in core_simd There's a bunch of must_use inside of portable_simd's core_simd crate which breaks the build. Just mark the relevant files with `allow(unused_attributes)` as there's loads of others, and I don't understand what a trait implementation actually is (as my understanding would mean there's really many others). This fixes building with RUSTFLAGS containing -C target-cpu=native where native is znver4 at least. Closes: https://bugs.gentoo.org/956018 Signed-off-by: Sam James gentoo.org> dev-lang/rust/files/1.87.0-znver.patch | 9 +++++++++ dev-lang/rust/rust-1.87.0.ebuild | 1 + 2 files changed, 10 insertions(+) diff --git a/dev-lang/rust/files/1.87.0-znver.patch b/dev-lang/rust/files/1.87.0-znver.patch new file mode 100644 index 000000000000..11424a41566e --- /dev/null +++ b/dev-lang/rust/files/1.87.0-znver.patch @@ -0,0 +1,9 @@ +https://bugs.gentoo.org/956018#c3 +--- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs ++++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs +@@ -1,4 +1,5 @@ + #![allow(unused_imports)] ++#![allow(unused_attributes)] + use super::MaskElement; + use crate::simd::{LaneCount, Simd, SupportedLaneCount}; + use core::marker::PhantomData; diff --git a/dev-lang/rust/rust-1.87.0.ebuild b/dev-lang/rust/rust-1.87.0.ebuild index 2bbb62c4d025..07bd09f36b48 100644 --- a/dev-lang/rust/rust-1.87.0.ebuild +++ b/dev-lang/rust/rust-1.87.0.ebuild @@ -174,6 +174,7 @@ PATCHES=( "${FILESDIR}"/1.85.0-cross-compile-libz.patch "${FILESDIR}"/1.85.0-musl-dynamic-linking.patch "${FILESDIR}"/1.67.0-doc-wasm.patch + "${FILESDIR}"/1.87.0-znver.patch ) clear_vendor_checksums() {