Skip to content

Commit 5944303

Browse files
committed
Rollup merge of #27379 - jeehoonkang:master, r=steveklabnik
As described in the module documentation, the memory orderings in Rust are the same with that of LLVM. However, the documentation for the memory orderings enum says the memory orderings are the same of that of C++. Note that they differ in that C++'s support the consume reads, while LLVM's does not. Hence this commit fixes the bug in the documentation for the enum.
2 parents d1f5199 + 2081aa6 commit 5944303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
145145
/// "relaxed" atomics allow all reorderings.
146146
///
147147
/// Rust's memory orderings are [the same as
148-
/// C++'s](http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync).
148+
/// LLVM's](http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations).
149149
#[stable(feature = "rust1", since = "1.0.0")]
150150
#[derive(Copy, Clone)]
151151
pub enum Ordering {

0 commit comments

Comments
 (0)