Conversation

taiki-e

compare_and_swap is deprecated in 1.50. (rust-lang/rust#79261)
This replaces the uses of compare_and_swap with compare_exchange.

See also the document about compare_and_swap -> compare_exchange(_weak) migration: https://doc.rust-lang.org/nightly/core/sync/atomic/struct.AtomicUsize.html#migrating-to-compare_exchange-and-compare_exchange_weak

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 thanks so much!

@yoshuawuytsyoshuawuyts merged commit 81cc567 into async-rs:master Jan 2, 2021
@taiki-etaiki-e deleted the compare_and_swap branch January 2, 2021 03:01
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.