about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-01-13 20:55:21 -0800
committerMichael Goulet <michael@errs.io>2022-01-13 20:55:21 -0800
commit7debb5c7852c91ef6ecd173057426518463d815a (patch)
treeba67a06d9da53ce824f215419c9361cbec17daff
parent22e491ac7ed454d34669151a8b6464cb643c9b41 (diff)
downloadrust-7debb5c7852c91ef6ecd173057426518463d815a.tar.gz
rust-7debb5c7852c91ef6ecd173057426518463d815a.zip
Add Sync bound to allocator parameter in vec::IntoIter
-rw-r--r--library/alloc/src/vec/into_iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/into_iter.rs b/library/alloc/src/vec/into_iter.rs
index 18e191f2b59..f985fb78465 100644
--- a/library/alloc/src/vec/into_iter.rs
+++ b/library/alloc/src/vec/into_iter.rs
@@ -125,7 +125,7 @@ impl<T, A: Allocator> AsRef<[T]> for IntoIter<T, A> {
 #[stable(feature = "rust1", since = "1.0.0")]
 unsafe impl<T: Send, A: Allocator + Send> Send for IntoIter<T, A> {}
 #[stable(feature = "rust1", since = "1.0.0")]
-unsafe impl<T: Sync, A: Allocator> Sync for IntoIter<T, A> {}
+unsafe impl<T: Sync, A: Allocator + Sync> Sync for IntoIter<T, A> {}
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T, A: Allocator> Iterator for IntoIter<T, A> {