Skip to content

Add fetch_update methods to AtomicBool and AtomicPtr - #78637

Merged
bors merged 1 commit into
rust-lang:masterfrom
mystor:atomic_ptr_bool
Nov 2, 2020
Merged

Add fetch_update methods to AtomicBool and AtomicPtr#78637
bors merged 1 commit into
rust-lang:masterfrom
mystor:atomic_ptr_bool

Conversation

@mystor

Copy link
Copy Markdown
Contributor

These methods were stabilized for the integer atomics in #71843, but the methods were not added for the non-integer atomics AtomicBool and AtomicPtr.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @LukasKalbertodt

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 1, 2020
@m-ou-se

Copy link
Copy Markdown
Member

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 #[unstable] attributes?

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.

@m-ou-sem-ou-se added the T-libs-api [DEPRECATED; DO NOT USE] label Nov 1, 2020
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`.
@m-ou-se

Copy link
Copy Markdown
Member

Thanks!

@bors r+

@bors

bors commented Nov 1, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 00f32e6 has been approved by m-ou-se

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 1, 2020
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Nov 1, 2020
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`.
@m-ou-sem-ou-se mentioned this pull request Nov 1, 2020
@m-ou-se

Copy link
Copy Markdown
Member

@bors rollup

@JohnTitorJohnTitor mentioned this pull request Nov 2, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 2, 2020
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`
@bors
bors merged commit 50d7716 into rust-lang:masterNov 2, 2020
@rustbotrustbot added this to the 1.49.0 milestone Nov 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@mystor@rust-highfive@m-ou-se@bors@LukasKalbertodt@rustbot