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();