diff --git a/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs b/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs index 1de09e95e737d..7b0c72b3e03e0 100644 --- a/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs +++ b/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs @@ -406,12 +406,14 @@ impl TaskGuardImpl<'_, B> { // This category is used for non-persisted data } TaskDataCategory::Data => { + #[cfg(debug_assertions)] debug_assert!( self.category == TaskDataCategory::Data || self.category == TaskDataCategory::All ); } TaskDataCategory::Meta => { + #[cfg(debug_assertions)] debug_assert!( self.category == TaskDataCategory::Meta || self.category == TaskDataCategory::All