aboutsummarylogtreecommitdiffstats
path: root/chromium-147-rust-1.95-bytemuck.patch
blob: 2a9794fea0a73b9db91eca3018418445a915f6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The original patch got reverted upstream, but LaneCount and SupportedLaneCount no longer work in Rust 1.95.0
--- a/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/pod.rs
+++ b/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/pod.rs
@@ -152,7 +152,6 @@ impl_unsafe_marker_for_simd!(
 unsafe impl<T, const N: usize> Pod for core::simd::Simd<T, N>
 where
   T: core::simd::SimdElement + Pod,
-  core::simd::LaneCount<N>: core::simd::SupportedLaneCount,
 {
 }
 
--- a/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/zeroable.rs
+++ b/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/zeroable.rs
@@ -231,7 +231,6 @@ impl_unsafe_marker_for_simd!(
 unsafe impl<T, const N: usize> Zeroable for core::simd::Simd<T, N>
 where
   T: core::simd::SimdElement + Zeroable,
-  core::simd::LaneCount<N>: core::simd::SupportedLaneCount,
 {
 }