about summary refs log tree commit diff
path: root/library/std
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 /library/std
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 'library/std')
-rw-r--r--library/std/src/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 7837dd276d2..4e7b6080835 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -274,7 +274,6 @@
 #![feature(utf8_chunks)]
 //
 // Library features (core):
-#![feature(atomic_mut_ptr)]
 #![feature(char_internals)]
 #![feature(core_intrinsics)]
 #![feature(duration_constants)]