Skip to content

Commit 0fad623

Browse files
committed
Auto merge of #112127 - matthiaskrgr:rollup-77pt893, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #112031 (Migrate `item_proc_macro` to Askama) - #112053 (Remove `-Zcgu-partitioning-strategy`.) - #112069 (offset_of: don't require type to be `Sized`) - #112084 (enhancements on build_helper utilization and rustdoc-gui-test) - #112096 (Remove array_zip) - #112108 (Fix re-export of doc hidden item inside private item not displayed) - #112113 (rustdoc: simplify `clean` by removing `FnRetTy`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents ae17488 + a9e5f5c commit 0fad623

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

core/src/array/mod.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -538,29 +538,6 @@ impl<T, const N: usize> [T; N] {
538538
drain_array_with(self, |iter| try_from_trusted_iterator(iter.map(f)))
539539
}
540540

541-
/// 'Zips up' two arrays into a single array of pairs.
542-
///
543-
/// `zip()` returns a new array where every element is a tuple where the
544-
/// first element comes from the first array, and the second element comes
545-
/// from the second array. In other words, it zips two arrays together,
546-
/// into a single one.
547-
///
548-
/// # Examples
549-
///
550-
/// ```
551-
/// #![feature(array_zip)]
552-
/// let x = [1, 2, 3];
553-
/// let y = [4, 5, 6];
554-
/// let z = x.zip(y);
555-
/// assert_eq!(z, [(1, 4), (2, 5), (3, 6)]);
556-
/// ```
557-
#[unstable(feature = "array_zip", issue = "80094")]
558-
pub fn zip<U>(self, rhs: [U; N]) -> [(T, U); N] {
559-
drain_array_with(self, |lhs| {
560-
drain_array_with(rhs, |rhs| from_trusted_iterator(crate::iter::zip(lhs, rhs)))
561-
})
562-
}
563-
564541
/// Returns a slice containing the entire array. Equivalent to `&s[..]`.
565542
#[stable(feature = "array_as_slice", since = "1.57.0")]
566543
#[rustc_const_stable(feature = "array_as_slice", since = "1.57.0")]

0 commit comments

Comments
 (0)