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 {
209209
210210thread_local ! {
211211 static BRIDGE_STATE : scoped_cell:: ScopedCell <BridgeStateL > =
212- scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) ;
212+ const { scoped_cell:: ScopedCell :: new( BridgeState :: NotConnected ) } ;
213213}
214214
215215impl BridgeState < ' _ > {
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ thread_local! {
223223 /// This is required as the thread-local state in the proc_macro client does
224224 /// not handle being re-entered, and will invalidate all `Symbol`s when
225225 /// 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 ) } ;
227227}
228228
229229/// Keep `ALREADY_RUNNING_SAME_THREAD` (see also its documentation)
You can’t perform that action at this time.
0 commit comments