From 6c54aafeb9c6bdf69bf0bd392be1f1340b1b9720 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 23 Dec 2021 11:44:31 -0800 Subject: [PATCH] Document the atomic ordering in the Serialize impl --- serde/src/ser/impls.rs | 1 + 1 file changed, 1 insertion(+) 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) } }