Use const thread_local!
This commit is contained in:
parent
ff0b8347ca
commit
aaf508cab3
@ -24,7 +24,7 @@ struct JitState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
thread_local! {
|
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
|
/// The Sender owned by the rustc thread
|
||||||
|
Loading…
x
Reference in New Issue
Block a user