aboutsummaryrefslogtreecommitdiff
path: root/src/array.rs
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2022-12-13 14:15:06 +0100
committerJeff Vander Stoep <jeffv@google.com>2022-12-13 14:16:39 +0100
commit6229992cbe96fbbf719aa4fdbede3888ffea67ba (patch)
tree756e01e069080219bb1bb7487156c9f88919b97a /src/array.rs
parent2bfe0b856493f125b6182750a099a577c7835d07 (diff)
downloadrayon-6229992cbe96fbbf719aa4fdbede3888ffea67ba.tar.gz
Upgrade rayon to 1.6.1main-16k-with-phones
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/rayon For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: I55672395408c0a770cc19a909a94f46b6fccfd38
Diffstat (limited to 'src/array.rs')
-rw-r--r--src/array.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/array.rs b/src/array.rs
index 7922cd6..937bebf 100644
--- a/src/array.rs
+++ b/src/array.rs
@@ -1,11 +1,8 @@
-#![cfg(min_const_generics)]
//! Parallel iterator types for [arrays] (`[T; N]`)
//!
//! You will rarely need to interact with this module directly unless you need
//! to name one of the iterator types.
//!
-//! Everything in this module requires const generics, stabilized in Rust 1.51.
-//!
//! [arrays]: https://doc.rust-lang.org/std/primitive.array.html
use crate::iter::plumbing::*;
@@ -14,7 +11,6 @@ use crate::slice::{Iter, IterMut};
use crate::vec::DrainProducer;
use std::mem::ManuallyDrop;
-/// This implementation requires const generics, stabilized in Rust 1.51.
impl<'data, T: Sync + 'data, const N: usize> IntoParallelIterator for &'data [T; N] {
type Item = &'data T;
type Iter = Iter<'data, T>;
@@ -24,7 +20,6 @@ impl<'data, T: Sync + 'data, const N: usize> IntoParallelIterator for &'data [T;
}
}
-/// This implementation requires const generics, stabilized in Rust 1.51.
impl<'data, T: Send + 'data, const N: usize> IntoParallelIterator for &'data mut [T; N] {
type Item = &'data mut T;
type Iter = IterMut<'data, T>;
@@ -34,7 +29,6 @@ impl<'data, T: Send + 'data, const N: usize> IntoParallelIterator for &'data mut
}
}
-/// This implementation requires const generics, stabilized in Rust 1.51.
impl<T: Send, const N: usize> IntoParallelIterator for [T; N] {
type Item = T;
type Iter = IntoIter<T, N>;