about summary refs log tree commit diff
path: root/library/portable-simd/crates/test_helpers/src/array.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2023-05-11 12:13:00 -0700
committerJubilee Young <workingjubilee@gmail.com>2023-05-11 12:13:00 -0700
commitb05d7e5bfa2b28ab950f5eb8099aa5892bb6cdbe (patch)
tree15572c326b1d9d411f46e19e453d23f138b4db13 /library/portable-simd/crates/test_helpers/src/array.rs
parent2a8221dbdfd180a2d56d4b0089f4f3952d8c2bcd (diff)
parent852762563aa890286eda2f668b8af30f8aa84216 (diff)
downloadrust-b05d7e5bfa2b28ab950f5eb8099aa5892bb6cdbe.tar.gz
rust-b05d7e5bfa2b28ab950f5eb8099aa5892bb6cdbe.zip
Sync portable-simd to 2023 May 10
Sync up to rust-lang/portable-simd@852762563aa890286eda2f668b8af30f8aa84216
Diffstat (limited to 'library/portable-simd/crates/test_helpers/src/array.rs')
-rw-r--r--library/portable-simd/crates/test_helpers/src/array.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/portable-simd/crates/test_helpers/src/array.rs b/library/portable-simd/crates/test_helpers/src/array.rs
index 5ffc9226976..984a427320d 100644
--- a/library/portable-simd/crates/test_helpers/src/array.rs
+++ b/library/portable-simd/crates/test_helpers/src/array.rs
@@ -41,6 +41,7 @@ where
 
     fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self> {
         let tree: [S::Tree; LANES] = unsafe {
+            #[allow(clippy::uninit_assumed_init)]
             let mut tree: [MaybeUninit<S::Tree>; LANES] = MaybeUninit::uninit().assume_init();
             for t in tree.iter_mut() {
                 *t = MaybeUninit::new(self.strategy.new_tree(runner)?)
@@ -60,6 +61,7 @@ impl<T: ValueTree, const LANES: usize> ValueTree for ArrayValueTree<[T; LANES]>
 
     fn current(&self) -> Self::Value {
         unsafe {
+            #[allow(clippy::uninit_assumed_init)]
             let mut value: [MaybeUninit<T::Value>; LANES] = MaybeUninit::uninit().assume_init();
             for (tree_elem, value_elem) in self.tree.iter().zip(value.iter_mut()) {
                 *value_elem = MaybeUninit::new(tree_elem.current());