Commit e670379
authored
Rollup merge of rust-lang#108419 - tgross35:atomic-as-ptr, r=m-ou-se
Stabilize `atomic_as_ptr`
Fixes rust-lang#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 rust-lang#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-fcp2 files changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| 963 | + | |
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
| |||
971 | 972 | | |
972 | 973 | | |
973 | 974 | | |
974 | | - | |
| 975 | + | |
| 976 | + | |
975 | 977 | | |
976 | 978 | | |
977 | 979 | | |
| |||
1890 | 1892 | | |
1891 | 1893 | | |
1892 | 1894 | | |
1893 | | - | |
1894 | 1895 | | |
1895 | 1896 | | |
1896 | 1897 | | |
| |||
1906 | 1907 | | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | | - | |
| 1910 | + | |
| 1911 | + | |
1910 | 1912 | | |
1911 | 1913 | | |
1912 | 1914 | | |
| |||
2859 | 2861 | | |
2860 | 2862 | | |
2861 | 2863 | | |
2862 | | - | |
2863 | | - | |
2864 | | - | |
| 2864 | + | |
| 2865 | + | |
2865 | 2866 | | |
2866 | 2867 | | |
2867 | 2868 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
| |||
0 commit comments