diff options
Diffstat (limited to 'library/proc_macro/src/bridge/server.rs')
| -rw-r--r-- | library/proc_macro/src/bridge/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/bridge/server.rs b/library/proc_macro/src/bridge/server.rs index 2ea87d866ff..eee64e69b37 100644 --- a/library/proc_macro/src/bridge/server.rs +++ b/library/proc_macro/src/bridge/server.rs @@ -152,7 +152,7 @@ thread_local! { /// This is required as the thread-local state in the proc_macro client does /// not handle being re-entered, and will invalidate all `Symbol`s when /// entering a nested macro. - static ALREADY_RUNNING_SAME_THREAD: Cell<bool> = Cell::new(false); + static ALREADY_RUNNING_SAME_THREAD: Cell<bool> = const { Cell::new(false) }; } /// Keep `ALREADY_RUNNING_SAME_THREAD` (see also its documentation) |
