From ebbfdd6fae86a3f885b05e9144aeaa3d3824b5a5 Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Tue, 10 Sep 2024 11:20:53 -0700 Subject: [PATCH] Rename OutputContent::read_untracked to OutputContent::as_read_result --- turbopack/crates/turbo-tasks-memory/src/output.rs | 2 +- turbopack/crates/turbo-tasks/src/output.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/turbopack/crates/turbo-tasks-memory/src/output.rs b/turbopack/crates/turbo-tasks-memory/src/output.rs index a53b7397b155b..b6dee0a245224 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 5a0ad3a7882b6..ea3d3b5697ce2 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),