File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> core::ops::DispatchFromDyn<Arc<U>> for Ar
146
146
147
147
// SAFETY: It is safe to send `Arc<T>` to another thread when the underlying `T` is `Sync` because
148
148
// it effectively means sharing `&T` (which is safe because `T` is `Sync`); additionally, it needs
149
- // `T` to be `Send` because any thread that has an `Arc<T>` may ultimately access `T` directly, for
150
- // example, when the reference count reaches zero and `T` is dropped.
149
+ // `T` to be `Send` because any thread that has an `Arc<T>` may ultimately access `T` using a
150
+ // mutable reference when the reference count reaches zero and `T` is dropped.
151
151
unsafe impl < T : ?Sized + Sync + Send > Send for Arc < T > { }
152
152
153
153
// SAFETY: It is safe to send `&Arc<T>` to another thread when the underlying `T` is `Sync` for the
You can’t perform that action at this time.
0 commit comments