File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ impl<'a> scoped_cell::ApplyL<'a> for BridgeStateL {
209
209
210
210
thread_local ! {
211
211
static BRIDGE_STATE : scoped_cell:: ScopedCell <BridgeStateL > =
212
- scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) ;
212
+ const { scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) } ;
213
213
}
214
214
215
215
impl BridgeState < ' _ > {
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ thread_local! {
223
223
/// This is required as the thread-local state in the proc_macro client does
224
224
/// not handle being re-entered, and will invalidate all `Symbol`s when
225
225
/// entering a nested macro.
226
- static ALREADY_RUNNING_SAME_THREAD : Cell <bool > = Cell :: new( false ) ;
226
+ static ALREADY_RUNNING_SAME_THREAD : Cell <bool > = const { Cell :: new( false ) } ;
227
227
}
228
228
229
229
/// Keep `ALREADY_RUNNING_SAME_THREAD` (see also its documentation)
You can’t perform that action at this time.
0 commit comments