commit: eb4129a37e08da19162f1c487f8891661f9f767a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat May 17 15:07:04 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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() {
