From 4742dbc765165dc0ece5e350b3527e697ff871dc Mon Sep 17 00:00:00 2001 From: Kornel Date: Mon, 17 Feb 2025 17:04:36 +0000 Subject: [PATCH] Use faster thread_local! for stdout --- library/std/src/io/stdio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index 661c422811ab..017862c7f3aa 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -20,7 +20,7 @@ type LocalStream = Arc>>; thread_local! { /// Used by the test crate to capture the output of the print macros and panics. - static OUTPUT_CAPTURE: Cell> = { + static OUTPUT_CAPTURE: Cell> = const { Cell::new(None) } }