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 @@ -284,7 +284,7 @@ impl<'a> scoped_cell::ApplyL<'a> for BridgeStateL {
284
284
285
285
thread_local ! {
286
286
static BRIDGE_STATE : scoped_cell:: ScopedCell <BridgeStateL > =
287
- scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) ;
287
+ const { scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) } ;
288
288
}
289
289
290
290
impl BridgeState < ' _ > {
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ thread_local! {
152
152
/// This is required as the thread-local state in the proc_macro client does
153
153
/// not handle being re-entered, and will invalidate all `Symbol`s when
154
154
/// entering a nested macro.
155
- static ALREADY_RUNNING_SAME_THREAD : Cell <bool > = Cell :: new( false ) ;
155
+ static ALREADY_RUNNING_SAME_THREAD : Cell <bool > = const { Cell :: new( false ) } ;
156
156
}
157
157
158
158
/// Keep `ALREADY_RUNNING_SAME_THREAD` (see also its documentation)
You can’t perform that action at this time.
0 commit comments