-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fetch_update methods to AtomicBool and AtomicPtr #78637
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Thanks! Surprising that these didn't exist yet. Looks like they were just forgotten? Can you open a tracking issue for them and add its number in the We can probably kick off the FCP for stabilization on that issue quickly, as this very same function for the other Atomic types is already stable. |
These methods were stabilized for the integer atomics in rust-lang#71843, but the methods were not added for the non-integer atomics `AtomicBool` and `AtomicPtr`.
669ef35
to
00f32e6
Compare
Thanks! @bors r+ |
📌 Commit 00f32e6 has been approved by |
Add fetch_update methods to AtomicBool and AtomicPtr These methods were stabilized for the integer atomics in rust-lang#71843, but the methods were not added for the non-integer atomics `AtomicBool` and `AtomicPtr`.
@bors rollup |
Rollup of 5 pull requests Successful merges: - rust-lang#78606 (Clarify handling of final line ending in str::lines()) - rust-lang#78610 (Do not remove tokens before AST json serialization) - rust-lang#78620 (Trivial fixes to bitwise operator documentation) - rust-lang#78627 (Point out that total_cmp is no strict superset of partial comparison) - rust-lang#78637 (Add fetch_update methods to AtomicBool and AtomicPtr) Failed merges: r? `@ghost`
These methods were stabilized for the integer atomics in #71843, but the methods were not added for the non-integer atomics
AtomicBool
andAtomicPtr
.