From fa0d3bfebba7085b45442c667a47590f392cca62 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 19 Aug 2024 13:22:34 +0200 Subject: [PATCH] no invalidation on Drop --- turbopack/crates/turbo-tasks/src/state.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/turbopack/crates/turbo-tasks/src/state.rs b/turbopack/crates/turbo-tasks/src/state.rs index 79d2207e3eb3c..adf4dc0987745 100644 --- a/turbopack/crates/turbo-tasks/src/state.rs +++ b/turbopack/crates/turbo-tasks/src/state.rs @@ -254,15 +254,6 @@ impl PartialEq for TransientState { } impl Eq for TransientState {} -impl Drop for TransientState { - fn drop(&mut self) { - let mut inner = self.inner.lock(); - for invalidator in take(&mut inner.invalidators) { - invalidator.invalidate(); - } - } -} - impl TransientState { pub fn new() -> Self { mark_stateful();