diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-11-16 17:26:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-16 17:26:29 +0100 |
| commit | c0a9bf933677b6e35122a037ad450c55dd32ddb6 (patch) | |
| tree | 7a7d7383c2b83a35bc21e299d30609b68536e9db | |
| parent | 11ce918c75b05d065ce3bf98b20d62465b5afc55 (diff) | |
| parent | 5058cad41e4603f8d43f8f606fa2b520bc3d220c (diff) | |
| download | rust-c0a9bf933677b6e35122a037ad450c55dd32ddb6.tar.gz rust-c0a9bf933677b6e35122a037ad450c55dd32ddb6.zip | |
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
Remove unneeded lifetimes in array/mod.rs
| -rw-r--r-- | library/core/src/array/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 769ef02873d..a7cb1023229 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -279,22 +279,22 @@ where } #[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 A: PartialEq<B>, { #[inline] - fn eq(&self, other: &&'b [B]) -> bool { + fn eq(&self, other: &&[B]) -> bool { self[..] == other[..] } #[inline] - fn ne(&self, other: &&'b [B]) -> bool { + fn ne(&self, other: &&[B]) -> bool { self[..] != other[..] } } #[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 B: PartialEq<A>, { @@ -309,22 +309,22 @@ where } #[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 A: PartialEq<B>, { #[inline] - fn eq(&self, other: &&'b mut [B]) -> bool { + fn eq(&self, other: &&mut [B]) -> bool { self[..] == other[..] } #[inline] - fn ne(&self, other: &&'b mut [B]) -> bool { + fn ne(&self, other: &&mut [B]) -> bool { self[..] != other[..] } } #[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 B: PartialEq<A>, { |
