Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #92671 - WaffleLapkin:atomic_from_mut_unique_ref, r=m…
…-ou-se Make `Atomic*::from_mut` return `&mut Atomic*` ```rust impl Atomic* { pub fn from_mut(v: &mut bool) -> &mut Self; // ^^^^---- previously was just a & } ``` This PR makes `from_mut` atomic methods tracked in #76314 return unique references to atomic types, instead of shared ones. This makes `from_mut` and `get_mut` inverses of each other, allowing to undo either of them by the other. r? `@RalfJung` (as Ralf was [concerned](#76314 (comment)) about this)
- Loading branch information