Skip to content

Commit 0699345

Browse files
committed
Remove lifetime bound for A for impl Extend<&'a T> for Vec<T, A>.
1 parent 50b816f commit 0699345

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,7 @@ impl<T, A: Allocator> Vec<T, A> {
29712971
/// [`copy_from_slice`]: slice::copy_from_slice
29722972
#[cfg(not(no_global_oom_handling))]
29732973
#[stable(feature = "extend_ref", since = "1.2.0")]
2974-
impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> {
2974+
impl<'a, T: Copy + 'a, A: Allocator> Extend<&'a T> for Vec<T, A> {
29752975
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) {
29762976
self.spec_extend(iter.into_iter())
29772977
}

library/alloc/src/vec/spec_extend.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<T, A: Allocator> SpecExtend<T, IntoIter<T>> for Vec<T, A> {
3636
}
3737
}
3838

39-
impl<'a, T: 'a, I, A: Allocator + 'a> SpecExtend<&'a T, I> for Vec<T, A>
39+
impl<'a, T: 'a, I, A: Allocator> SpecExtend<&'a T, I> for Vec<T, A>
4040
where
4141
I: Iterator<Item = &'a T>,
4242
T: Clone,
@@ -46,7 +46,7 @@ where
4646
}
4747
}
4848

49-
impl<'a, T: 'a, A: Allocator + 'a> SpecExtend<&'a T, slice::Iter<'a, T>> for Vec<T, A>
49+
impl<'a, T: 'a, A: Allocator> SpecExtend<&'a T, slice::Iter<'a, T>> for Vec<T, A>
5050
where
5151
T: Copy,
5252
{

0 commit comments

Comments
 (0)