Document the atomic ordering in the Serialize impl

This commit is contained in:
David Tolnay 2021-12-23 11:44:31 -08:00
parent 5d41404e67
commit 6c54aafeb9
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

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