about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-13 21:55:35 +0100
committerGitHub <noreply@github.com>2023-03-13 21:55:35 +0100
commite670379b57b261e3ed233b6793add42008f424ea (patch)
tree0690dbe33fb70594aaefeb6579fb5b2ac4c1a317 /compiler/rustc_codegen_llvm/src
parent8efa635b40ce6569e12f4988b7a9bcb7f3f0ed0c (diff)
parent318be2bee9259852bc95728269916a45f59fa5aa (diff)
downloadrust-e670379b57b261e3ed233b6793add42008f424ea.tar.gz
rust-e670379b57b261e3ed233b6793add42008f424ea.zip
Rollup merge of #108419 - tgross35:atomic-as-ptr, r=m-ou-se
Stabilize `atomic_as_ptr`

Fixes #66893

This stabilizes the `as_ptr` methods for atomics. The stabilization feature gate used here is `atomic_as_ptr` which supersedes `atomic_mut_ptr` to match the change in https://github.com/rust-lang/rust/pull/107736.

This needs FCP.

New stable API:

```rust
impl AtomicBool {
    pub const fn as_ptr(&self) -> *mut bool;
}

impl AtomicI32 {
    pub const fn as_ptr(&self) -> *mut i32;
}

// Includes all other atomic types

impl<T> AtomicPtr<T> {
    pub const fn as_ptr(&self) -> *mut *mut T;
}
```

r? libs-api
``@rustbot`` label +needs-fcp
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions