You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unsafe Rust review: this is unsound -- UnsafeRef<T> should only implement Send if T is Send + Sync (what Arc does), since sending one instance to another thread would allow it to be referenced from two different threads.
The text was updated successfully, but these errors were encountered:
cblichmann
added a commit
to cblichmann/intrusive-rs
that referenced
this issue
Aug 21, 2024
This came up in an internal unsafe review:
In src/unsafe_ref.rs:107
Unsafe Rust review: this is unsound --
UnsafeRef<T>
should only implementSend
ifT
isSend + Sync
(whatArc
does), since sending one instance to another thread would allow it to be referenced from two different threads.The text was updated successfully, but these errors were encountered: