rust/library
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
..
alloc Auto merge of #92068 - fee1-dead:libcore2021, r=m-ou-se 2022-01-08 21:41:48 +00:00
backtrace@b02ed04a7e
core Rollup merge of #92671 - WaffleLapkin:atomic_from_mut_unique_ref, r=m-ou-se 2022-01-09 13:38:33 +01:00
panic_abort Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
panic_unwind Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
portable-simd Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd 2021-12-17 15:10:53 +08:00
proc_macro Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
profiler_builtins Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
rtstartup
rustc-std-workspace-alloc Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
rustc-std-workspace-core Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
rustc-std-workspace-std Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00
std Rollup merge of #92632 - yoshuawuyts:stabilize-available-parallelism, r=joshtriplett 2022-01-07 20:21:01 -08:00
stdarch@2adc17a544 Add is_riscv_feature_detected!; modify impl of hint::spin_loop 2022-01-05 15:44:52 +08:00
test Auto merge of #92068 - fee1-dead:libcore2021, r=m-ou-se 2022-01-08 21:41:48 +00:00
unwind Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00