From d99f854db2ace653bde80266186d317552a3a926 Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Fri, 3 Jan 2025 16:02:29 -0800 Subject: [PATCH] refactor(turbo-tasks): Add NonLocalValue marker trait implementation for TransientState --- turbopack/crates/turbo-tasks/src/marker_trait.rs | 1 + turbopack/crates/turbopack-ecmascript/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/turbopack/crates/turbo-tasks/src/marker_trait.rs b/turbopack/crates/turbo-tasks/src/marker_trait.rs index eaf5e5d8f293f..81f9a915fda08 100644 --- a/turbopack/crates/turbo-tasks/src/marker_trait.rs +++ b/turbopack/crates/turbo-tasks/src/marker_trait.rs @@ -74,6 +74,7 @@ macro_rules! impl_auto_marker_trait { <::Read as $crate::VcRead>::Target: $trait {} unsafe impl $trait for $crate::State {} + unsafe impl $trait for $crate::TransientState {} unsafe impl $trait for $crate::Value {} unsafe impl $trait for $crate::TransientValue {} unsafe impl $trait for $crate::TransientInstance {} diff --git a/turbopack/crates/turbopack-ecmascript/src/lib.rs b/turbopack/crates/turbopack-ecmascript/src/lib.rs index a5b198ce51d08..a2ec944b7befd 100644 --- a/turbopack/crates/turbopack-ecmascript/src/lib.rs +++ b/turbopack/crates/turbopack-ecmascript/src/lib.rs @@ -236,7 +236,7 @@ impl EcmascriptModuleAssetBuilder { } } -#[turbo_tasks::value(local)] +#[turbo_tasks::value] pub struct EcmascriptModuleAsset { pub source: ResolvedVc>, pub asset_context: ResolvedVc>,