mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
Remove unneeded lifetimes in array/mod.rs
This commit is contained in:
parent
4d247ad7d3
commit
5058cad41e
@ -254,22 +254,22 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N]
|
impl<A, B, const N: usize> PartialEq<&[B]> for [A; N]
|
||||||
where
|
where
|
||||||
A: PartialEq<B>,
|
A: PartialEq<B>,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
fn eq(&self, other: &&'b [B]) -> bool {
|
fn eq(&self, other: &&[B]) -> bool {
|
||||||
self[..] == other[..]
|
self[..] == other[..]
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
fn ne(&self, other: &&'b [B]) -> bool {
|
fn ne(&self, other: &&[B]) -> bool {
|
||||||
self[..] != other[..]
|
self[..] != other[..]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b [B]
|
impl<A, B, const N: usize> PartialEq<[A; N]> for &[B]
|
||||||
where
|
where
|
||||||
B: PartialEq<A>,
|
B: PartialEq<A>,
|
||||||
{
|
{
|
||||||
@ -284,22 +284,22 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N]
|
impl<A, B, const N: usize> PartialEq<&mut [B]> for [A; N]
|
||||||
where
|
where
|
||||||
A: PartialEq<B>,
|
A: PartialEq<B>,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
fn eq(&self, other: &&'b mut [B]) -> bool {
|
fn eq(&self, other: &&mut [B]) -> bool {
|
||||||
self[..] == other[..]
|
self[..] == other[..]
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
fn ne(&self, other: &&'b mut [B]) -> bool {
|
fn ne(&self, other: &&mut [B]) -> bool {
|
||||||
self[..] != other[..]
|
self[..] != other[..]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b mut [B]
|
impl<A, B, const N: usize> PartialEq<[A; N]> for &mut [B]
|
||||||
where
|
where
|
||||||
B: PartialEq<A>,
|
B: PartialEq<A>,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user