diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2024-05-22 14:16:33 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2024-11-19 18:54:20 +0100 |
| commit | ef9055f3eef409e99e1e786f6a90a1684fde810d (patch) | |
| tree | 83c68e06b52891d7dad7355fe9d263eec013ab16 /library/std/src/thread | |
| parent | 7ac4c04731ecb6eedd63a1f899a0c6207679cbf9 (diff) | |
| download | rust-ef9055f3eef409e99e1e786f6a90a1684fde810d.tar.gz rust-ef9055f3eef409e99e1e786f6a90a1684fde810d.zip | |
Use add_spawn_hook for libtest's output capturing.
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index ee8d688398d..c6b1e0de84c 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -502,9 +502,6 @@ impl Builder { }); let their_packet = my_packet.clone(); - let output_capture = crate::io::set_output_capture(None); - crate::io::set_output_capture(output_capture.clone()); - // Pass `f` in `MaybeUninit` because actually that closure might *run longer than the lifetime of `F`*. // See <https://github.com/rust-lang/rust/issues/101983> for more details. // To prevent leaks we use a wrapper that drops its contents. @@ -542,7 +539,6 @@ impl Builder { imp::Thread::set_name(name); } - crate::io::set_output_capture(output_capture); for hook in hooks { hook(); } |
