Skip to content

Commit c0a9bf9

Browse files
authored
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
Remove unneeded lifetimes in array/mod.rs
2 parents 11ce918 + 5058cad commit c0a9bf9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

library/core/src/array/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -279,22 +279,22 @@ where
279279
}
280280

281281
#[stable(feature = "rust1", since = "1.0.0")]
282-
impl<'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N]
282+
impl<A, B, const N: usize> PartialEq<&[B]> for [A; N]
283283
where
284284
A: PartialEq<B>,
285285
{
286286
#[inline]
287-
fn eq(&self, other: &&'b [B]) -> bool {
287+
fn eq(&self, other: &&[B]) -> bool {
288288
self[..] == other[..]
289289
}
290290
#[inline]
291-
fn ne(&self, other: &&'b [B]) -> bool {
291+
fn ne(&self, other: &&[B]) -> bool {
292292
self[..] != other[..]
293293
}
294294
}
295295

296296
#[stable(feature = "rust1", since = "1.0.0")]
297-
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b [B]
297+
impl<A, B, const N: usize> PartialEq<[A; N]> for &[B]
298298
where
299299
B: PartialEq<A>,
300300
{
@@ -309,22 +309,22 @@ where
309309
}
310310

311311
#[stable(feature = "rust1", since = "1.0.0")]
312-
impl<'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N]
312+
impl<A, B, const N: usize> PartialEq<&mut [B]> for [A; N]
313313
where
314314
A: PartialEq<B>,
315315
{
316316
#[inline]
317-
fn eq(&self, other: &&'b mut [B]) -> bool {
317+
fn eq(&self, other: &&mut [B]) -> bool {
318318
self[..] == other[..]
319319
}
320320
#[inline]
321-
fn ne(&self, other: &&'b mut [B]) -> bool {
321+
fn ne(&self, other: &&mut [B]) -> bool {
322322
self[..] != other[..]
323323
}
324324
}
325325

326326
#[stable(feature = "rust1", since = "1.0.0")]
327-
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b mut [B]
327+
impl<A, B, const N: usize> PartialEq<[A; N]> for &mut [B]
328328
where
329329
B: PartialEq<A>,
330330
{

0 commit comments

Comments
 (0)