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 {
284284
285285thread_local ! {
286286 static BRIDGE_STATE : scoped_cell:: ScopedCell <BridgeStateL > =
287- scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) ;
287+ const { scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) } ;
288288}
289289
290290impl BridgeState < ' _ > {
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ thread_local! {
152152 /// This is required as the thread-local state in the proc_macro client does
153153 /// not handle being re-entered, and will invalidate all `Symbol`s when
154154 /// 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 ) } ;
156156}
157157
158158/// Keep `ALREADY_RUNNING_SAME_THREAD` (see also its documentation)
You can’t perform that action at this time.
0 commit comments