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
This commit is contained in:
commit
b37edea656
2 changed files with 1 additions and 9 deletions
|
@ -25,7 +25,7 @@ use rustc_serialize::{Encodable, Encoder, Decodable, Decoder};
|
|||
|
||||
use array_vec::{self, Array, ArrayVec};
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, Debug)]
|
||||
#[derive(Hash, Debug)]
|
||||
pub enum AccumulateVec<A: Array> {
|
||||
Array(ArrayVec<A>),
|
||||
Heap(Vec<A::Element>)
|
||||
|
|
|
@ -52,14 +52,6 @@ impl<A> Hash for ArrayVec<A>
|
|||
}
|
||||
}
|
||||
|
||||
impl<A: Array> PartialEq for ArrayVec<A> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self == other
|
||||
}
|
||||
}
|
||||
|
||||
impl<A: Array> Eq for ArrayVec<A> {}
|
||||
|
||||
impl<A> Clone for ArrayVec<A>
|
||||
where A: Array,
|
||||
A::Element: Clone {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue