From aaf508cab3556db647987ecd40d695fe43369630 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 7 Dec 2021 18:25:27 +0100 Subject: [PATCH] Use const thread_local! --- src/driver/jit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 8c93a1513490..309d27090b5c 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -24,7 +24,7 @@ struct JitState { } thread_local! { - static LAZY_JIT_STATE: RefCell> = RefCell::new(None); + static LAZY_JIT_STATE: RefCell> = const { RefCell::new(None) }; } /// The Sender owned by the rustc thread