diff options
| author | bors <bors@rust-lang.org> | 2020-07-26 05:50:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-07-26 05:50:51 +0000 |
| commit | 461707c5a119cc33c5d7df585ddb6cbec4a081bf (patch) | |
| tree | 24a677c43e50736f6028e26d8cfecb6ee9eb8f49 /src/liballoc/collections | |
| parent | a4dd850720369d9e5b9df91820b23cddb2badc06 (diff) | |
| parent | 8fc7d47c8c43dab634aff15908ab42ca056dda07 (diff) | |
| download | rust-461707c5a119cc33c5d7df585ddb6cbec4a081bf.tar.gz rust-461707c5a119cc33c5d7df585ddb6cbec4a081bf.zip | |
Auto merge of #74060 - kpp:remove_length_at_most_32, r=dtolnay
Remove trait LengthAtMost32 This is a continuation of https://github.com/rust-lang/rust/pull/74026 preserving the original burrbull's commit. I talked to @burrbull, he suggested me to finish his PR.
Diffstat (limited to 'src/liballoc/collections')
| -rw-r--r-- | src/liballoc/collections/vec_deque.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index fa65d6ce8d7..d3c6d493d6d 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -9,7 +9,6 @@ // ignore-tidy-filelength -use core::array::LengthAtMost32; use core::cmp::{self, Ordering}; use core::fmt; use core::hash::{Hash, Hasher}; @@ -2889,9 +2888,9 @@ macro_rules! __impl_slice_eq1 { __impl_slice_eq1! { [] VecDeque<A>, Vec<B>, } __impl_slice_eq1! { [] VecDeque<A>, &[B], } __impl_slice_eq1! { [] VecDeque<A>, &mut [B], } -__impl_slice_eq1! { [const N: usize] VecDeque<A>, [B; N], [B; N]: LengthAtMost32 } -__impl_slice_eq1! { [const N: usize] VecDeque<A>, &[B; N], [B; N]: LengthAtMost32 } -__impl_slice_eq1! { [const N: usize] VecDeque<A>, &mut [B; N], [B; N]: LengthAtMost32 } +__impl_slice_eq1! { [const N: usize] VecDeque<A>, [B; N], } +__impl_slice_eq1! { [const N: usize] VecDeque<A>, &[B; N], } +__impl_slice_eq1! { [const N: usize] VecDeque<A>, &mut [B; N], } #[stable(feature = "rust1", since = "1.0.0")] impl<A: PartialOrd> PartialOrd for VecDeque<A> { |
