Skip to content

Commit aaf508c

Browse files
committed
Use const thread_local!
1 parent ff0b834 commit aaf508c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/jit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct JitState {
2424
}
2525

2626
thread_local! {
27-
static LAZY_JIT_STATE: RefCell<Option<JitState>> = RefCell::new(None);
27+
static LAZY_JIT_STATE: RefCell<Option<JitState>> = const { RefCell::new(None) };
2828
}
2929

3030
/// The Sender owned by the rustc thread

0 commit comments

Comments
 (0)