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
feat: Replace MaybeUninit with ManuallyDrop for send operations
Replaced with in channel send paths. This change addresses Miri data race errors that occurred due to how was being used in scenarios involving values being semantically moved into the channel.
By using , we gain explicit control over the dropping of values, preventing from potentially being perceived as uninitialized memory in concurrent contexts by Miri. This refactoring impacts:
- : , , and various send methods.
- : and public send methods.
- : trait signature and macro.
- All implementations: and .
- : function.
- : implementation for the Null channel.
- : .
All usages were replaced with , and logic was adjusted to use or for value transfer, ensuring proper ownership semantics and avoiding unintended drops. Unused imports were also cleaned up.
0 commit comments