Skip to content

Commit

Permalink
Delete fixed sized array repetition impls
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 2, 2021
1 parent 3dfd33a commit 58bc466
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,6 @@ pub mod ext {
}
}

macro_rules! array_rep_slice {
($($l:tt)*) => {
$(
impl<'q, T: 'q> RepAsIteratorExt<'q> for [T; $l] {
type Iter = slice::Iter<'q, T>;

fn quote_into_iter(&'q self) -> (Self::Iter, HasIter) {
(self.iter(), HasIter)
}
}
)*
};
}

array_rep_slice!(
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
);

impl<'q, T: RepAsIteratorExt<'q>> RepAsIteratorExt<'q> for RepInterp<T> {
type Iter = T::Iter;

Expand Down

0 comments on commit 58bc466

Please sign in to comment.