From 5058cad41e4603f8d43f8f606fa2b520bc3d220c Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 5 Nov 2020 11:49:27 +0100 Subject: [PATCH] Remove unneeded lifetimes in array/mod.rs --- library/core/src/array/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 966272ca11549..a3ef4cc7eba0c 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -254,22 +254,22 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N] +impl PartialEq<&[B]> for [A; N] where A: PartialEq, { #[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 PartialEq<[A; N]> for &[B] where B: PartialEq, { @@ -284,22 +284,22 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N] +impl PartialEq<&mut [B]> for [A; N] where A: PartialEq, { #[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 PartialEq<[A; N]> for &mut [B] where B: PartialEq, {