diff options
author | DPC <dylan.dpc@gmail.com> | 2021-03-22 02:19:00 +0100 |
---|---|---|
committer | DPC <dylan.dpc@gmail.com> | 2021-03-22 02:19:00 +0100 |
commit | af60851f99a297bdfa47faef895b52e0ac5064ff (patch) | |
tree | 285f43e405d24ddb9849d7a06592ff04b09021f8 | |
parent | e486a9a8307e496e0564b6d02796b2e47b09af5e (diff) | |
download | rust-min/add-track-caller.tar.gz |
fix track caller callmin/add-track-caller
-rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index c1f1f97ff54..75b6c928079 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2628,9 +2628,9 @@ impl<T, A: Allocator> Vec<T, A> { /// append the entire slice at once. /// /// [`copy_from_slice`]: slice::copy_from_slice -#[track_caller] #[stable(feature = "extend_ref", since = "1.2.0")] impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> { + #[track_caller] fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) { self.spec_extend(iter.into_iter()) } |