diff options
| author | Michael Goulet <michael@errs.io> | 2022-01-13 20:55:21 -0800 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-01-13 20:55:21 -0800 |
| commit | 7debb5c7852c91ef6ecd173057426518463d815a (patch) | |
| tree | ba67a06d9da53ce824f215419c9361cbec17daff | |
| parent | 22e491ac7ed454d34669151a8b6464cb643c9b41 (diff) | |
| download | rust-7debb5c7852c91ef6ecd173057426518463d815a.tar.gz rust-7debb5c7852c91ef6ecd173057426518463d815a.zip | |
Add Sync bound to allocator parameter in vec::IntoIter
| -rw-r--r-- | library/alloc/src/vec/into_iter.rs | 2 |
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> { |
