diff --git a/serde/src/ser/impls.rs b/serde/src/ser/impls.rs index c254ac65..02705a78 100644 --- a/serde/src/ser/impls.rs +++ b/serde/src/ser/impls.rs @@ -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) } }