Skip to content

Commit b37edea

Browse files
committed
Auto merge of #39380 - est31:remove_dead_peq, r=jseyfried
Remove dead recursive partial eq impl Its nowhere used (if it had been used used, the rust stack would have overflown due to the recursion). Its presence was confusing for mrustc. cc @thepowersgang
2 parents f39f273 + 7ed78fc commit b37edea

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/librustc_data_structures/accumulate_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use rustc_serialize::{Encodable, Encoder, Decodable, Decoder};
2525

2626
use array_vec::{self, Array, ArrayVec};
2727

28-
#[derive(PartialEq, Eq, Hash, Debug)]
28+
#[derive(Hash, Debug)]
2929
pub enum AccumulateVec<A: Array> {
3030
Array(ArrayVec<A>),
3131
Heap(Vec<A::Element>)

src/librustc_data_structures/array_vec.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ impl<A> Hash for ArrayVec<A>
5252
}
5353
}
5454

55-
impl<A: Array> PartialEq for ArrayVec<A> {
56-
fn eq(&self, other: &Self) -> bool {
57-
self == other
58-
}
59-
}
60-
61-
impl<A: Array> Eq for ArrayVec<A> {}
62-
6355
impl<A> Clone for ArrayVec<A>
6456
where A: Array,
6557
A::Element: Clone {

0 commit comments

Comments
 (0)