diff options
| author | bors <bors@rust-lang.org> | 2020-03-31 22:28:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-31 22:28:18 +0000 |
| commit | 58dd1ce8383aaebcad9b6027b89a316fd868b35c (patch) | |
| tree | 21ba3ae00a56b802477ae80fbbeec3187dfe1c5f /src/libcore/array | |
| parent | a5b09d35473615e7142f5570f5c5fad0caf68bd2 (diff) | |
| parent | 8310320ebd68d5f23ad21bb5a15326abeaf91dff (diff) | |
| download | rust-58dd1ce8383aaebcad9b6027b89a316fd868b35c.tar.gz rust-58dd1ce8383aaebcad9b6027b89a316fd868b35c.zip | |
Auto merge of #70638 - Dylan-DPC:rollup-2tgfxjt, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #68770 (BTreeMap/BTreeSet: implement drain_filter ) - #70081 (add `unused_braces` lint) - #70556 (parse_and_disallow_postfix_after_cast: account for `ExprKind::Err`.) - #70605 (Add missing -lmsvcrt on mingw after -lpthread) - #70630 (Update books.) - #70632 (expand vec![] to Vec::new()) Failed merges: r? @ghost
Diffstat (limited to 'src/libcore/array')
| -rw-r--r-- | src/libcore/array/iter.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libcore/array/iter.rs b/src/libcore/array/iter.rs index 80eaae0d4af..f6b8d4ba081 100644 --- a/src/libcore/array/iter.rs +++ b/src/libcore/array/iter.rs @@ -39,7 +39,7 @@ where alive: Range<usize>, } -impl<T, const N: usize> IntoIter<T, { N }> +impl<T, const N: usize> IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -99,7 +99,7 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T, const N: usize> Iterator for IntoIter<T, { N }> +impl<T, const N: usize> Iterator for IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -146,7 +146,7 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T, const N: usize> DoubleEndedIterator for IntoIter<T, { N }> +impl<T, const N: usize> DoubleEndedIterator for IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -182,7 +182,7 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T, const N: usize> Drop for IntoIter<T, { N }> +impl<T, const N: usize> Drop for IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -195,7 +195,7 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T, const N: usize> ExactSizeIterator for IntoIter<T, { N }> +impl<T, const N: usize> ExactSizeIterator for IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -210,17 +210,17 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T, const N: usize> FusedIterator for IntoIter<T, { N }> where [T; N]: LengthAtMost32 {} +impl<T, const N: usize> FusedIterator for IntoIter<T, N> where [T; N]: LengthAtMost32 {} // The iterator indeed reports the correct length. The number of "alive" // elements (that will still be yielded) is the length of the range `alive`. // This range is decremented in length in either `next` or `next_back`. It is // always decremented by 1 in those methods, but only if `Some(_)` is returned. #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -unsafe impl<T, const N: usize> TrustedLen for IntoIter<T, { N }> where [T; N]: LengthAtMost32 {} +unsafe impl<T, const N: usize> TrustedLen for IntoIter<T, N> where [T; N]: LengthAtMost32 {} #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T: Clone, const N: usize> Clone for IntoIter<T, { N }> +impl<T: Clone, const N: usize> Clone for IntoIter<T, N> where [T; N]: LengthAtMost32, { @@ -249,7 +249,7 @@ where } #[stable(feature = "array_value_iter_impls", since = "1.40.0")] -impl<T: fmt::Debug, const N: usize> fmt::Debug for IntoIter<T, { N }> +impl<T: fmt::Debug, const N: usize> fmt::Debug for IntoIter<T, N> where [T; N]: LengthAtMost32, { |
