diff options
| author | Sam James <sam@gentoo.org> | 2025-05-17 16:07:04 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-05-17 16:07:04 +0100 |
| commit | eb4129a37e08da19162f1c487f8891661f9f767a (patch) | |
| tree | 19fd18ab96e0f982cb036757bf69af54d61df60c /dev-lang/rust | |
| parent | 22841db98179e24c2b54f55714518a4b88b48cc5 (diff) | |
| download | gentoo-eb4129a37e08da19162f1c487f8891661f9f767a.tar.gz gentoo-eb4129a37e08da19162f1c487f8891661f9f767a.tar.bz2 gentoo-eb4129a37e08da19162f1c487f8891661f9f767a.zip | |
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@gentoo.org>
Diffstat (limited to 'dev-lang/rust')
| -rw-r--r-- | dev-lang/rust/files/1.87.0-znver.patch | 9 | ||||
| -rw-r--r-- | dev-lang/rust/rust-1.87.0.ebuild | 1 |
2 files changed, 10 insertions, 0 deletions
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() { |
