diff --git a/turbopack/crates/turbo-tasks-memory/src/output.rs b/turbopack/crates/turbo-tasks-memory/src/output.rs index a53b7397b155b7..b6dee0a2452244 100644 --- a/turbopack/crates/turbo-tasks-memory/src/output.rs +++ b/turbopack/crates/turbo-tasks-memory/src/output.rs @@ -24,7 +24,7 @@ impl Output { pub fn read_untracked(&self) -> Result { match &self.content { None => Err(anyhow!("Output is empty")), - Some(content) => content.read_untracked(), + Some(content) => content.as_read_result(), } } diff --git a/turbopack/crates/turbo-tasks/src/output.rs b/turbopack/crates/turbo-tasks/src/output.rs index 5a0ad3a7882b6e..ea3d3b5697ce28 100644 --- a/turbopack/crates/turbo-tasks/src/output.rs +++ b/turbopack/crates/turbo-tasks/src/output.rs @@ -16,9 +16,7 @@ pub enum OutputContent { } impl OutputContent { - /// INVALIDATION: Be careful with this, it will not track dependencies, so - /// using it could break cache invalidation. - pub fn read_untracked(&self) -> anyhow::Result { + pub fn as_read_result(&self) -> anyhow::Result { match &self { Self::Error(err) => Err(anyhow::Error::new(err.clone())), Self::Link(raw_vc) => Ok(*raw_vc),