diff --git a/gc/src/gc.rs b/gc/src/gc.rs index 9526c28..3e1f8f9 100644 --- a/gc/src/gc.rs +++ b/gc/src/gc.rs @@ -26,7 +26,7 @@ impl Drop for GcState { // Whether or not the thread is currently in the sweep phase of garbage collection. // During this phase, attempts to dereference a `Gc` pointer will trigger a panic. -thread_local!(pub static GC_DROPPING: Cell = Cell::new(false)); +thread_local!(pub static GC_DROPPING: Cell = const { Cell::new(false) }); struct DropGuard; impl DropGuard { fn new() -> DropGuard {