Use const thread_local!
This commit is contained in:
parent
ff0b8347ca
commit
aaf508cab3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue