about summary refs log tree commit diff
path: root/src/libcore/array.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2019-03-09 19:10:28 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2019-03-09 19:10:28 -0800
commitdf4ea90b39c808e858e05f3b4bb05fc29f812d26 (patch)
tree933b8174b4345eef7cd841265db05b552849823b /src/libcore/array.rs
parent26b4cb48484382032522384318e70ceb0fbc4a41 (diff)
downloadrust-df4ea90b39c808e858e05f3b4bb05fc29f812d26.tar.gz
rust-df4ea90b39c808e858e05f3b4bb05fc29f812d26.zip
Use lifetime contravariance to elide more lifetimes in core+alloc+std
Diffstat (limited to 'src/libcore/array.rs')
-rw-r--r--src/libcore/array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs
index 9c6ecc43502..dcd9ce6dad7 100644
--- a/src/libcore/array.rs
+++ b/src/libcore/array.rs
@@ -139,7 +139,7 @@ macro_rules! array_impls {
             }
 
             #[stable(feature = "try_from", since = "1.34.0")]
-            impl<'a, T> TryFrom<&'a [T]> for [T; $N] where T: Copy {
+            impl<T> TryFrom<&[T]> for [T; $N] where T: Copy {
                 type Error = TryFromSliceError;
 
                 fn try_from(slice: &[T]) -> Result<[T; $N], TryFromSliceError> {