We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf28b34 + 124f89e commit 9738caaCopy full SHA for 9738caa
gc/src/gc.rs
@@ -26,7 +26,7 @@ impl Drop for GcState {
26
27
// Whether or not the thread is currently in the sweep phase of garbage collection.
28
// During this phase, attempts to dereference a `Gc<T>` pointer will trigger a panic.
29
-thread_local!(pub static GC_DROPPING: Cell<bool> = Cell::new(false));
+thread_local!(pub static GC_DROPPING: Cell<bool> = const { Cell::new(false) });
30
struct DropGuard;
31
impl DropGuard {
32
fn new() -> DropGuard {
0 commit comments