public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.87 commit in: /
Date: Mon, 02 Jun 2025 09:48:39 +0000 (UTC)	[thread overview]
Message-ID: <1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo> (raw)

commit:     85532e155e4fb458a56d98b638eeb18e94528d49
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 09:47:10 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 09:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=85532e15

Add patches for Rust 1.87.0-r1

Patches:
- 1.85.0-cross-compile-libz.patch
- 1.85.0-musl-dynamic-linking.patch
- 1.67.0-doc-wasm.patch
- 1.87.0-znver.patch

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-znver.patch | 180 -----------------------------------------------------
 1.87.0-znver.patch |   9 +++
 2 files changed, 9 insertions(+), 180 deletions(-)

diff --git a/1.86.0-znver.patch b/1.86.0-znver.patch
deleted file mode 100644
index 634a50f..0000000
--- a/1.86.0-znver.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-https://github.com/rust-lang/rust/issues/138054
-https://bugs.gentoo.org/953109#c7
---- a/library/portable-simd/crates/core_simd/src/lib.rs
-+++ b/library/portable-simd/crates/core_simd/src/lib.rs
-@@ -35,7 +35,11 @@
-     feature(stdarch_x86_avx512)
- )]
- #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
--#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
-+#![deny(
-+    unsafe_op_in_unsafe_fn,
-+    unreachable_pub,
-+    clippy::undocumented_unsafe_blocks
-+)]
- #![doc(test(attr(deny(warnings))))]
- #![allow(internal_features)]
- #![unstable(feature = "portable_simd", issue = "86656")]
---- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-@@ -5,7 +5,7 @@ use core::marker::PhantomData;
- 
- /// A mask where each lane is represented by a single bit.
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(
-+pub(crate) struct Mask<T, const N: usize>(
-     <LaneCount<N> as SupportedLaneCount>::BitMask,
-     PhantomData<T>,
- )
-@@ -78,7 +78,7 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         let mut mask = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         if value {
-             mask.as_mut().fill(u8::MAX)
-@@ -93,12 +93,12 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         (self.0.as_ref()[lane / 8] >> (lane % 8)) & 0x1 > 0
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         unsafe {
-             self.0.as_mut()[lane / 8] ^= ((value ^ self.test_unchecked(lane)) as u8) << (lane % 8)
-         }
-@@ -106,7 +106,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         unsafe {
-             core::intrinsics::simd::simd_select_bitmask(
-                 self.0,
-@@ -118,19 +118,19 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         unsafe { Self(core::intrinsics::simd::simd_bitmask(value), PhantomData) }
-     }
- 
-     #[inline]
--    pub fn to_bitmask_integer(self) -> u64 {
-+    pub(crate) fn to_bitmask_integer(self) -> u64 {
-         let mut bitmask = [0u8; 8];
-         bitmask[..self.0.as_ref().len()].copy_from_slice(self.0.as_ref());
-         u64::from_ne_bytes(bitmask)
-     }
- 
-     #[inline]
--    pub fn from_bitmask_integer(bitmask: u64) -> Self {
-+    pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self {
-         let mut bytes = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         let len = bytes.as_mut().len();
-         bytes
-@@ -141,7 +141,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -151,13 +151,13 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         self != Self::splat(false)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         self == Self::splat(true)
-     }
- }
---- a/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-@@ -3,7 +3,7 @@
- use crate::simd::{LaneCount, MaskElement, Simd, SupportedLaneCount};
- 
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(Simd<T, N>)
-+pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
- where
-     T: MaskElement,
-     LaneCount<N>: SupportedLaneCount;
-@@ -103,36 +103,36 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         Self(Simd::splat(if value { T::TRUE } else { T::FALSE }))
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         T::eq(self.0[lane], T::TRUE)
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         self.0[lane] = if value { T::TRUE } else { T::FALSE }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         self.0
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         Self(value)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -221,14 +221,14 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_any(self.to_int()) }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_all(self.to_int()) }
-     }

diff --git a/1.87.0-znver.patch b/1.87.0-znver.patch
new file mode 100644
index 0000000..11424a4
--- /dev/null
+++ b/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;


WARNING: multiple messages have this Message-ID (diff)
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.88 commit in: /
Date: Mon, 02 Jun 2025 09:48:40 +0000 (UTC)	[thread overview]
Message-ID: <1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo> (raw)
Message-ID: <20250602094840.2oPFcadqRqGh9-ACmXXIZSHyS4SKw4nPZ5P4CdAn6Uc@z> (raw)

commit:     85532e155e4fb458a56d98b638eeb18e94528d49
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 09:47:10 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 09:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=85532e15

Add patches for Rust 1.87.0-r1

Patches:
- 1.85.0-cross-compile-libz.patch
- 1.85.0-musl-dynamic-linking.patch
- 1.67.0-doc-wasm.patch
- 1.87.0-znver.patch

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-znver.patch | 180 -----------------------------------------------------
 1.87.0-znver.patch |   9 +++
 2 files changed, 9 insertions(+), 180 deletions(-)

diff --git a/1.86.0-znver.patch b/1.86.0-znver.patch
deleted file mode 100644
index 634a50f..0000000
--- a/1.86.0-znver.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-https://github.com/rust-lang/rust/issues/138054
-https://bugs.gentoo.org/953109#c7
---- a/library/portable-simd/crates/core_simd/src/lib.rs
-+++ b/library/portable-simd/crates/core_simd/src/lib.rs
-@@ -35,7 +35,11 @@
-     feature(stdarch_x86_avx512)
- )]
- #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
--#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
-+#![deny(
-+    unsafe_op_in_unsafe_fn,
-+    unreachable_pub,
-+    clippy::undocumented_unsafe_blocks
-+)]
- #![doc(test(attr(deny(warnings))))]
- #![allow(internal_features)]
- #![unstable(feature = "portable_simd", issue = "86656")]
---- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-@@ -5,7 +5,7 @@ use core::marker::PhantomData;
- 
- /// A mask where each lane is represented by a single bit.
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(
-+pub(crate) struct Mask<T, const N: usize>(
-     <LaneCount<N> as SupportedLaneCount>::BitMask,
-     PhantomData<T>,
- )
-@@ -78,7 +78,7 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         let mut mask = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         if value {
-             mask.as_mut().fill(u8::MAX)
-@@ -93,12 +93,12 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         (self.0.as_ref()[lane / 8] >> (lane % 8)) & 0x1 > 0
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         unsafe {
-             self.0.as_mut()[lane / 8] ^= ((value ^ self.test_unchecked(lane)) as u8) << (lane % 8)
-         }
-@@ -106,7 +106,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         unsafe {
-             core::intrinsics::simd::simd_select_bitmask(
-                 self.0,
-@@ -118,19 +118,19 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         unsafe { Self(core::intrinsics::simd::simd_bitmask(value), PhantomData) }
-     }
- 
-     #[inline]
--    pub fn to_bitmask_integer(self) -> u64 {
-+    pub(crate) fn to_bitmask_integer(self) -> u64 {
-         let mut bitmask = [0u8; 8];
-         bitmask[..self.0.as_ref().len()].copy_from_slice(self.0.as_ref());
-         u64::from_ne_bytes(bitmask)
-     }
- 
-     #[inline]
--    pub fn from_bitmask_integer(bitmask: u64) -> Self {
-+    pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self {
-         let mut bytes = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         let len = bytes.as_mut().len();
-         bytes
-@@ -141,7 +141,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -151,13 +151,13 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         self != Self::splat(false)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         self == Self::splat(true)
-     }
- }
---- a/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-@@ -3,7 +3,7 @@
- use crate::simd::{LaneCount, MaskElement, Simd, SupportedLaneCount};
- 
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(Simd<T, N>)
-+pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
- where
-     T: MaskElement,
-     LaneCount<N>: SupportedLaneCount;
-@@ -103,36 +103,36 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         Self(Simd::splat(if value { T::TRUE } else { T::FALSE }))
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         T::eq(self.0[lane], T::TRUE)
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         self.0[lane] = if value { T::TRUE } else { T::FALSE }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         self.0
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         Self(value)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -221,14 +221,14 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_any(self.to_int()) }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_all(self.to_int()) }
-     }

diff --git a/1.87.0-znver.patch b/1.87.0-znver.patch
new file mode 100644
index 0000000..11424a4
--- /dev/null
+++ b/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;


WARNING: multiple messages have this Message-ID (diff)
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:master commit in: /
Date: Mon, 02 Jun 2025 09:48:42 +0000 (UTC)	[thread overview]
Message-ID: <1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo> (raw)
Message-ID: <20250602094842.xco9mxyW1cxmDsay3SB1DDIE66tzPL4JRLLTFxlpy8A@z> (raw)

commit:     85532e155e4fb458a56d98b638eeb18e94528d49
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 09:47:10 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 09:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=85532e15

Add patches for Rust 1.87.0-r1

Patches:
- 1.85.0-cross-compile-libz.patch
- 1.85.0-musl-dynamic-linking.patch
- 1.67.0-doc-wasm.patch
- 1.87.0-znver.patch

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-znver.patch | 180 -----------------------------------------------------
 1.87.0-znver.patch |   9 +++
 2 files changed, 9 insertions(+), 180 deletions(-)

diff --git a/1.86.0-znver.patch b/1.86.0-znver.patch
deleted file mode 100644
index 634a50f..0000000
--- a/1.86.0-znver.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-https://github.com/rust-lang/rust/issues/138054
-https://bugs.gentoo.org/953109#c7
---- a/library/portable-simd/crates/core_simd/src/lib.rs
-+++ b/library/portable-simd/crates/core_simd/src/lib.rs
-@@ -35,7 +35,11 @@
-     feature(stdarch_x86_avx512)
- )]
- #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
--#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
-+#![deny(
-+    unsafe_op_in_unsafe_fn,
-+    unreachable_pub,
-+    clippy::undocumented_unsafe_blocks
-+)]
- #![doc(test(attr(deny(warnings))))]
- #![allow(internal_features)]
- #![unstable(feature = "portable_simd", issue = "86656")]
---- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-@@ -5,7 +5,7 @@ use core::marker::PhantomData;
- 
- /// A mask where each lane is represented by a single bit.
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(
-+pub(crate) struct Mask<T, const N: usize>(
-     <LaneCount<N> as SupportedLaneCount>::BitMask,
-     PhantomData<T>,
- )
-@@ -78,7 +78,7 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         let mut mask = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         if value {
-             mask.as_mut().fill(u8::MAX)
-@@ -93,12 +93,12 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         (self.0.as_ref()[lane / 8] >> (lane % 8)) & 0x1 > 0
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         unsafe {
-             self.0.as_mut()[lane / 8] ^= ((value ^ self.test_unchecked(lane)) as u8) << (lane % 8)
-         }
-@@ -106,7 +106,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         unsafe {
-             core::intrinsics::simd::simd_select_bitmask(
-                 self.0,
-@@ -118,19 +118,19 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         unsafe { Self(core::intrinsics::simd::simd_bitmask(value), PhantomData) }
-     }
- 
-     #[inline]
--    pub fn to_bitmask_integer(self) -> u64 {
-+    pub(crate) fn to_bitmask_integer(self) -> u64 {
-         let mut bitmask = [0u8; 8];
-         bitmask[..self.0.as_ref().len()].copy_from_slice(self.0.as_ref());
-         u64::from_ne_bytes(bitmask)
-     }
- 
-     #[inline]
--    pub fn from_bitmask_integer(bitmask: u64) -> Self {
-+    pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self {
-         let mut bytes = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         let len = bytes.as_mut().len();
-         bytes
-@@ -141,7 +141,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -151,13 +151,13 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         self != Self::splat(false)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         self == Self::splat(true)
-     }
- }
---- a/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-@@ -3,7 +3,7 @@
- use crate::simd::{LaneCount, MaskElement, Simd, SupportedLaneCount};
- 
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(Simd<T, N>)
-+pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
- where
-     T: MaskElement,
-     LaneCount<N>: SupportedLaneCount;
-@@ -103,36 +103,36 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         Self(Simd::splat(if value { T::TRUE } else { T::FALSE }))
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         T::eq(self.0[lane], T::TRUE)
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         self.0[lane] = if value { T::TRUE } else { T::FALSE }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         self.0
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         Self(value)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -221,14 +221,14 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_any(self.to_int()) }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_all(self.to_int()) }
-     }

diff --git a/1.87.0-znver.patch b/1.87.0-znver.patch
new file mode 100644
index 0000000..11424a4
--- /dev/null
+++ b/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;


WARNING: multiple messages have this Message-ID (diff)
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.87.0-r1 commit in: /
Date: Mon, 02 Jun 2025 09:49:04 +0000 (UTC)	[thread overview]
Message-ID: <1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo> (raw)
Message-ID: <20250602094904.Bd9eEOoYIRNZ-euDYhAQL-L--Y5nN9du47SEuhuSLvY@z> (raw)

commit:     85532e155e4fb458a56d98b638eeb18e94528d49
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 09:47:10 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 09:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=85532e15

Add patches for Rust 1.87.0-r1

Patches:
- 1.85.0-cross-compile-libz.patch
- 1.85.0-musl-dynamic-linking.patch
- 1.67.0-doc-wasm.patch
- 1.87.0-znver.patch

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-znver.patch | 180 -----------------------------------------------------
 1.87.0-znver.patch |   9 +++
 2 files changed, 9 insertions(+), 180 deletions(-)

diff --git a/1.86.0-znver.patch b/1.86.0-znver.patch
deleted file mode 100644
index 634a50f..0000000
--- a/1.86.0-znver.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-https://github.com/rust-lang/rust/issues/138054
-https://bugs.gentoo.org/953109#c7
---- a/library/portable-simd/crates/core_simd/src/lib.rs
-+++ b/library/portable-simd/crates/core_simd/src/lib.rs
-@@ -35,7 +35,11 @@
-     feature(stdarch_x86_avx512)
- )]
- #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
--#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
-+#![deny(
-+    unsafe_op_in_unsafe_fn,
-+    unreachable_pub,
-+    clippy::undocumented_unsafe_blocks
-+)]
- #![doc(test(attr(deny(warnings))))]
- #![allow(internal_features)]
- #![unstable(feature = "portable_simd", issue = "86656")]
---- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-@@ -5,7 +5,7 @@ use core::marker::PhantomData;
- 
- /// A mask where each lane is represented by a single bit.
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(
-+pub(crate) struct Mask<T, const N: usize>(
-     <LaneCount<N> as SupportedLaneCount>::BitMask,
-     PhantomData<T>,
- )
-@@ -78,7 +78,7 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         let mut mask = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         if value {
-             mask.as_mut().fill(u8::MAX)
-@@ -93,12 +93,12 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         (self.0.as_ref()[lane / 8] >> (lane % 8)) & 0x1 > 0
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         unsafe {
-             self.0.as_mut()[lane / 8] ^= ((value ^ self.test_unchecked(lane)) as u8) << (lane % 8)
-         }
-@@ -106,7 +106,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         unsafe {
-             core::intrinsics::simd::simd_select_bitmask(
-                 self.0,
-@@ -118,19 +118,19 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         unsafe { Self(core::intrinsics::simd::simd_bitmask(value), PhantomData) }
-     }
- 
-     #[inline]
--    pub fn to_bitmask_integer(self) -> u64 {
-+    pub(crate) fn to_bitmask_integer(self) -> u64 {
-         let mut bitmask = [0u8; 8];
-         bitmask[..self.0.as_ref().len()].copy_from_slice(self.0.as_ref());
-         u64::from_ne_bytes(bitmask)
-     }
- 
-     #[inline]
--    pub fn from_bitmask_integer(bitmask: u64) -> Self {
-+    pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self {
-         let mut bytes = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         let len = bytes.as_mut().len();
-         bytes
-@@ -141,7 +141,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -151,13 +151,13 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         self != Self::splat(false)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         self == Self::splat(true)
-     }
- }
---- a/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-@@ -3,7 +3,7 @@
- use crate::simd::{LaneCount, MaskElement, Simd, SupportedLaneCount};
- 
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(Simd<T, N>)
-+pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
- where
-     T: MaskElement,
-     LaneCount<N>: SupportedLaneCount;
-@@ -103,36 +103,36 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         Self(Simd::splat(if value { T::TRUE } else { T::FALSE }))
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         T::eq(self.0[lane], T::TRUE)
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         self.0[lane] = if value { T::TRUE } else { T::FALSE }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         self.0
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         Self(value)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -221,14 +221,14 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_any(self.to_int()) }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_all(self.to_int()) }
-     }

diff --git a/1.87.0-znver.patch b/1.87.0-znver.patch
new file mode 100644
index 0000000..11424a4
--- /dev/null
+++ b/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;


WARNING: multiple messages have this Message-ID (diff)
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.88.0_beta20250526 commit in: /
Date: Mon, 02 Jun 2025 09:49:05 +0000 (UTC)	[thread overview]
Message-ID: <1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo> (raw)
Message-ID: <20250602094905.RZVrlwBmGkCzQuCCO5MYwv1Q16W3z-bG7QMAOdi4YuY@z> (raw)

commit:     85532e155e4fb458a56d98b638eeb18e94528d49
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 09:47:10 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 09:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=85532e15

Add patches for Rust 1.87.0-r1

Patches:
- 1.85.0-cross-compile-libz.patch
- 1.85.0-musl-dynamic-linking.patch
- 1.67.0-doc-wasm.patch
- 1.87.0-znver.patch

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-znver.patch | 180 -----------------------------------------------------
 1.87.0-znver.patch |   9 +++
 2 files changed, 9 insertions(+), 180 deletions(-)

diff --git a/1.86.0-znver.patch b/1.86.0-znver.patch
deleted file mode 100644
index 634a50f..0000000
--- a/1.86.0-znver.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-https://github.com/rust-lang/rust/issues/138054
-https://bugs.gentoo.org/953109#c7
---- a/library/portable-simd/crates/core_simd/src/lib.rs
-+++ b/library/portable-simd/crates/core_simd/src/lib.rs
-@@ -35,7 +35,11 @@
-     feature(stdarch_x86_avx512)
- )]
- #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
--#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
-+#![deny(
-+    unsafe_op_in_unsafe_fn,
-+    unreachable_pub,
-+    clippy::undocumented_unsafe_blocks
-+)]
- #![doc(test(attr(deny(warnings))))]
- #![allow(internal_features)]
- #![unstable(feature = "portable_simd", issue = "86656")]
---- a/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/bitmask.rs
-@@ -5,7 +5,7 @@ use core::marker::PhantomData;
- 
- /// A mask where each lane is represented by a single bit.
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(
-+pub(crate) struct Mask<T, const N: usize>(
-     <LaneCount<N> as SupportedLaneCount>::BitMask,
-     PhantomData<T>,
- )
-@@ -78,7 +78,7 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         let mut mask = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         if value {
-             mask.as_mut().fill(u8::MAX)
-@@ -93,12 +93,12 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         (self.0.as_ref()[lane / 8] >> (lane % 8)) & 0x1 > 0
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         unsafe {
-             self.0.as_mut()[lane / 8] ^= ((value ^ self.test_unchecked(lane)) as u8) << (lane % 8)
-         }
-@@ -106,7 +106,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         unsafe {
-             core::intrinsics::simd::simd_select_bitmask(
-                 self.0,
-@@ -118,19 +118,19 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         unsafe { Self(core::intrinsics::simd::simd_bitmask(value), PhantomData) }
-     }
- 
-     #[inline]
--    pub fn to_bitmask_integer(self) -> u64 {
-+    pub(crate) fn to_bitmask_integer(self) -> u64 {
-         let mut bitmask = [0u8; 8];
-         bitmask[..self.0.as_ref().len()].copy_from_slice(self.0.as_ref());
-         u64::from_ne_bytes(bitmask)
-     }
- 
-     #[inline]
--    pub fn from_bitmask_integer(bitmask: u64) -> Self {
-+    pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self {
-         let mut bytes = <LaneCount<N> as SupportedLaneCount>::BitMask::default();
-         let len = bytes.as_mut().len();
-         bytes
-@@ -141,7 +141,7 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -151,13 +151,13 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         self != Self::splat(false)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         self == Self::splat(true)
-     }
- }
---- a/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-+++ b/library/portable-simd/crates/core_simd/src/masks/full_masks.rs
-@@ -3,7 +3,7 @@
- use crate::simd::{LaneCount, MaskElement, Simd, SupportedLaneCount};
- 
- #[repr(transparent)]
--pub struct Mask<T, const N: usize>(Simd<T, N>)
-+pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
- where
-     T: MaskElement,
-     LaneCount<N>: SupportedLaneCount;
-@@ -103,36 +103,36 @@ where
- {
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn splat(value: bool) -> Self {
-+    pub(crate) fn splat(value: bool) -> Self {
-         Self(Simd::splat(if value { T::TRUE } else { T::FALSE }))
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub unsafe fn test_unchecked(&self, lane: usize) -> bool {
-+    pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool {
-         T::eq(self.0[lane], T::TRUE)
-     }
- 
-     #[inline]
--    pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-+    pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool) {
-         self.0[lane] = if value { T::TRUE } else { T::FALSE }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new vector and does not mutate the original value"]
--    pub fn to_int(self) -> Simd<T, N> {
-+    pub(crate) fn to_int(self) -> Simd<T, N> {
-         self.0
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-+    pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self {
-         Self(value)
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new mask and does not mutate the original value"]
--    pub fn convert<U>(self) -> Mask<U, N>
-+    pub(crate) fn convert<U>(self) -> Mask<U, N>
-     where
-         U: MaskElement,
-     {
-@@ -221,14 +221,14 @@ where
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn any(self) -> bool {
-+    pub(crate) fn any(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_any(self.to_int()) }
-     }
- 
-     #[inline]
-     #[must_use = "method returns a new bool and does not mutate the original value"]
--    pub fn all(self) -> bool {
-+    pub(crate) fn all(self) -> bool {
-         // Safety: use `self` as an integer vector
-         unsafe { core::intrinsics::simd::simd_reduce_all(self.to_int()) }
-     }

diff --git a/1.87.0-znver.patch b/1.87.0-znver.patch
new file mode 100644
index 0000000..11424a4
--- /dev/null
+++ b/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;


             reply	other threads:[~2025-06-02  9:51 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-02  9:48 Matt Jolly [this message]
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.88 commit in: / Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:master " Matt Jolly
2025-06-02  9:49 ` [gentoo-commits] proj/rust-patches:1.87.0-r1 " Matt Jolly
2025-06-02  9:49 ` [gentoo-commits] proj/rust-patches:1.88.0_beta20250526 " Matt Jolly
  -- strict thread matches above, loose matches on Subject: below --
2025-07-29  6:36 [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.85 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.83 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.82 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.80 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.78 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.77 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.76 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-03  4:33 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-06-03  4:33 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.85 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.82 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.83 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.80 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.76 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.78 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.77 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:48 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-06-02  9:48 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.85 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.83 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.82 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.80 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.78 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.77 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.76 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-06-02  9:25 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-06-02  9:25 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.85 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.82 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.83 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.80 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.77 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.78 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.76 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:55 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-05-31  5:55 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.85 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.84 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.83 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.82 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.80 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.78 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.75 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.77 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.76 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly
2025-05-31  5:53 [gentoo-commits] proj/rust-patches:1.74 " Matt Jolly
2025-05-31  5:53 ` [gentoo-commits] proj/rust-patches:1.87 " Matt Jolly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1748857630.85532e155e4fb458a56d98b638eeb18e94528d49.kangie@gentoo \
    --to=kangie@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox