Files
rust/library/core/src
Matthias Krüger 0871a38adf 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](https://github.com/rust-lang/rust/issues/76314#issuecomment-955062593) about this)
2022-01-09 13:38:33 +01:00
..
2021-12-14 16:40:43 +01:00
2022-01-07 12:28:47 -08:00
2022-01-04 14:28:28 -08:00
2021-11-23 23:55:05 +01:00
2021-12-14 16:40:43 +01:00
2021-12-26 16:02:33 +03:00
2021-12-15 00:11:23 +08:00
2021-12-14 16:40:43 +01:00
2021-11-10 08:35:42 -08:00
2021-12-23 20:07:41 +09:00
2021-12-04 19:40:33 +01:00
2020-07-27 19:51:13 -05:00
2021-11-30 10:51:42 -05:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00