diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-10-02 22:54:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-02 22:54:33 +0200 |
| commit | 7e571eead8e4356dcb9b4f4aa92ffcdc29336803 (patch) | |
| tree | 49c4d78de9ae26b8957c5be8f15668b4fafbf3e7 /src/libcore/ops/function.rs | |
| parent | 32c1454a87e22431e79d189eaac6b89747460b50 (diff) | |
| parent | d4840da77993d052bae2a900163026602ac89d3c (diff) | |
| download | rust-7e571eead8e4356dcb9b4f4aa92ffcdc29336803.tar.gz rust-7e571eead8e4356dcb9b4f4aa92ffcdc29336803.zip | |
Rollup merge of #54687 - scottmcm:more-elision, r=dtolnay
Use impl_header_lifetime_elision in libcore The feature is approved for stabilization, so let's use it to remove about 300 `'a`s. Tracking issue for the feature: https://github.com/rust-lang/rust/issues/15872
Diffstat (limited to 'src/libcore/ops/function.rs')
| -rw-r--r-- | src/libcore/ops/function.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/ops/function.rs b/src/libcore/ops/function.rs index 3ebd10a9209..c9591c3f57b 100644 --- a/src/libcore/ops/function.rs +++ b/src/libcore/ops/function.rs @@ -240,7 +240,7 @@ pub trait FnOnce<Args> { mod impls { #[stable(feature = "rust1", since = "1.0.0")] - impl<'a,A,F:?Sized> Fn<A> for &'a F + impl<A,F:?Sized> Fn<A> for &F where F : Fn<A> { extern "rust-call" fn call(&self, args: A) -> F::Output { @@ -249,7 +249,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - impl<'a,A,F:?Sized> FnMut<A> for &'a F + impl<A,F:?Sized> FnMut<A> for &F where F : Fn<A> { extern "rust-call" fn call_mut(&mut self, args: A) -> F::Output { @@ -258,7 +258,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - impl<'a,A,F:?Sized> FnOnce<A> for &'a F + impl<A,F:?Sized> FnOnce<A> for &F where F : Fn<A> { type Output = F::Output; @@ -269,7 +269,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - impl<'a,A,F:?Sized> FnMut<A> for &'a mut F + impl<A,F:?Sized> FnMut<A> for &mut F where F : FnMut<A> { extern "rust-call" fn call_mut(&mut self, args: A) -> F::Output { @@ -278,7 +278,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - impl<'a,A,F:?Sized> FnOnce<A> for &'a mut F + impl<A,F:?Sized> FnOnce<A> for &mut F where F : FnMut<A> { type Output = F::Output; |
