Use const thread_local!

This commit is contained in:
bjorn3 2021-12-07 18:25:27 +01:00
parent ff0b8347ca
commit aaf508cab3

View File

@ -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