]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #95183 - ibraheemdev:arc-count-acquire, r=Amanieu
authorbors <bors@rust-lang.org>
Fri, 6 May 2022 14:53:24 +0000 (14:53 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 May 2022 14:53:24 +0000 (14:53 +0000)
commite209e85e39b4851c3ec122a45ddeabe318b2d522
treee5089db5d51b424ee8d297d4b6053dc8a81a802c
parent9a251644fa2adde5f46eea8d342b7e60e4716039
parent7e9303272695b04c6c84a63aa447fa572c768f13
Auto merge of #95183 - ibraheemdev:arc-count-acquire, r=Amanieu

Weaken needlessly restrictive orderings on `Arc::*_count`

There is no apparent reason for these to be `SeqCst`. For reference, [the Boost C++ implementation relies on acquire semantics](https://github.com/boostorg/smart_ptr/blob/f2cc84a23c64b8a73c9b72b34799d0854d7e0787/include/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp#L137-L140).
library/alloc/src/sync.rs