We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4c1a38 commit 69669cbCopy full SHA for 69669cb
library/alloc/src/collections/vec_deque.rs
@@ -2694,6 +2694,13 @@ pub struct IterMut<'a, T: 'a> {
2694
phantom: PhantomData<&'a mut [T]>,
2695
}
2696
2697
+// SAFETY: we do nothing thread-local and there is no interior mutability,
2698
+// so the usual structural `Send`/`Sync` apply.
2699
+#[stable(feature = "rust1", since = "1.0.0")]
2700
+unsafe impl<T: Send> Send for IterMut<'_, T> {}
2701
2702
+unsafe impl<T: Sync> Sync for IterMut<'_, T> {}
2703
+
2704
#[stable(feature = "collection_debug", since = "1.17.0")]
2705
impl<T: fmt::Debug> fmt::Debug for IterMut<'_, T> {
2706
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
0 commit comments