diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-01-05 11:25:09 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-01-05 12:14:32 +0100 |
| commit | 5bd5781823629235c1a96950a4487263d52cee6a (patch) | |
| tree | f37574d22db46d0e8804288e6000a87fa43a8622 | |
| parent | a9efbaf3a500a8670491bdc18012a7ebfbc1c122 (diff) | |
| download | rust-5bd5781823629235c1a96950a4487263d52cee6a.tar.gz rust-5bd5781823629235c1a96950a4487263d52cee6a.zip | |
Fix missing .load() in Scope's Debug impl.
| -rw-r--r-- | library/std/src/thread/scoped.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index b2fe3c3185e..8c64a6e6201 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -288,7 +288,7 @@ impl<'env> fmt::Debug for Scope<'env> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Scope") .field("num_running_threads", &self.data.num_running_threads.load(Ordering::Relaxed)) - .field("a_thread_panicked", &self.data.a_thread_panicked) + .field("a_thread_panicked", &self.data.a_thread_panicked.load(Ordering::Relaxed)) .field("main_thread", &self.data.main_thread) .finish_non_exhaustive() } |
