Merge pull request #2263 from taiki-e/ordering

Relax orderings of Serialize impl for atomic types to match the latest stable
This commit is contained in:
David Tolnay 2022-08-20 20:22:34 -07:00 committed by GitHub
commit 6660676b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -916,7 +916,7 @@ macro_rules! atomic_impl {
S: Serializer,
{
// Matches the atomic ordering used in libcore for the Debug impl
self.load(Ordering::SeqCst).serialize(serializer)
self.load(Ordering::Relaxed).serialize(serializer)
}
}
)*