Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
834: Use `UnsafeCell<MaybeUninit<T>>` in AtomicCell r=taiki-e a=taiki-e Fixes #833 Note: This contains two breaking changes: - Unsized values are no longer allowed. This is because `MaybeUninit` doesn't allow it. - `AtomicCell` now implements `Drop`. This is because `MaybeUninit` prevents `T` from being dropped, so we need to implement `Drop` for `AtomicCell` to avoid leaks of non-`Copy` types. Breakages are allowed because this is a soundness bug fix. However, given the amount of breakage, we would not be able to yank the affected releases and would only create an advisory. Co-authored-by: Taiki Endo <te316e89@gmail.com>
- Loading branch information
Showing
2 changed files
with
132 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.