diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 8c93a1513490..309d27090b5c 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -24,7 +24,7 @@ struct JitState { } thread_local! { - static LAZY_JIT_STATE: RefCell> = RefCell::new(None); + static LAZY_JIT_STATE: RefCell> = const { RefCell::new(None) }; } /// The Sender owned by the rustc thread