Skip to content

Commit 5bd5781

Browse files
committed
Fix missing .load() in Scope's Debug impl.
1 parent a9efbaf commit 5bd5781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl<'env> fmt::Debug for Scope<'env> {
288288
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
289289
f.debug_struct("Scope")
290290
.field("num_running_threads", &self.data.num_running_threads.load(Ordering::Relaxed))
291-
.field("a_thread_panicked", &self.data.a_thread_panicked)
291+
.field("a_thread_panicked", &self.data.a_thread_panicked.load(Ordering::Relaxed))
292292
.field("main_thread", &self.data.main_thread)
293293
.finish_non_exhaustive()
294294
}

0 commit comments

Comments
 (0)