about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-12-07 18:25:27 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2021-12-07 18:25:27 +0100
commitaaf508cab3556db647987ecd40d695fe43369630 (patch)
tree02458641e4bb4567ffe0f67d9d246de48c2f0e60
parentff0b8347cade9a1e0ce5edd9d7fb492926fdcdb3 (diff)
downloadrust-aaf508cab3556db647987ecd40d695fe43369630.tar.gz
rust-aaf508cab3556db647987ecd40d695fe43369630.zip
Use const thread_local!
-rw-r--r--src/driver/jit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/jit.rs b/src/driver/jit.rs
index 8c93a151349..309d27090b5 100644
--- a/src/driver/jit.rs
+++ b/src/driver/jit.rs
@@ -24,7 +24,7 @@ struct JitState {
 }
 
 thread_local! {
-    static LAZY_JIT_STATE: RefCell<Option<JitState>> = RefCell::new(None);
+    static LAZY_JIT_STATE: RefCell<Option<JitState>> = const { RefCell::new(None) };
 }
 
 /// The Sender owned by the rustc thread