diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-23 22:17:27 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-28 18:47:02 +0300 |
| commit | 676d282dd3cd2dedba651e98c9a41af42983f08b (patch) | |
| tree | 859875de5c271f683d5b57bb9ec4911e44388f16 /src/libcore | |
| parent | 434152157f9d73ad1899fb8da3a61aed6f8a46d6 (diff) | |
| download | rust-676d282dd3cd2dedba651e98c9a41af42983f08b.tar.gz rust-676d282dd3cd2dedba651e98c9a41af42983f08b.zip | |
Deny `unused_lifetimes` through rustbuild
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/array.rs | 10 | ||||
| -rw-r--r-- | src/libcore/pin.rs | 2 | ||||
| -rw-r--r-- | src/libcore/ptr/unique.rs | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 6ecc0487fae..6023bc21e74 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -250,7 +250,7 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, 'b, A, B, const N: usize> PartialEq<[A; N]> for [B] +impl<A, B, const N: usize> PartialEq<[A; N]> for [B] where B: PartialEq<A>, [A; N]: LengthAtMost32, @@ -266,7 +266,7 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, 'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N] +impl<'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N] where A: PartialEq<B>, [A; N]: LengthAtMost32, @@ -282,7 +282,7 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, 'b, A, B, const N: usize> PartialEq<[A; N]> for &'b [B] +impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b [B] where B: PartialEq<A>, [A; N]: LengthAtMost32, @@ -298,7 +298,7 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, 'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N] +impl<'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N] where A: PartialEq<B>, [A; N]: LengthAtMost32, @@ -314,7 +314,7 @@ where } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, 'b, A, B, const N: usize> PartialEq<[A; N]> for &'b mut [B] +impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b mut [B] where B: PartialEq<A>, [A; N]: LengthAtMost32, diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 2feaab7a09c..88a56174629 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -775,7 +775,7 @@ where {} #[stable(feature = "pin", since = "1.33.0")] -impl<'a, P, U> DispatchFromDyn<Pin<U>> for Pin<P> +impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U>, {} diff --git a/src/libcore/ptr/unique.rs b/src/libcore/ptr/unique.rs index d2517e51fc5..f0d011fe6b2 100644 --- a/src/libcore/ptr/unique.rs +++ b/src/libcore/ptr/unique.rs @@ -172,7 +172,7 @@ impl<T: ?Sized> From<&T> for Unique<T> { } #[unstable(feature = "ptr_internals", issue = "0")] -impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> { +impl<T: ?Sized> From<NonNull<T>> for Unique<T> { #[inline] fn from(p: NonNull<T>) -> Self { unsafe { Unique::new_unchecked(p.as_ptr()) } |
