Skip to content

Commit

Permalink
s/LocalOutputId/LocalTaskId/g
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Aug 21, 2024
1 parent f3663ff commit 06c1a4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-tasks/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ define_id!(
doc = "non-local task.",
);
define_id!(
LocalOutputId: u32,
LocalTaskId: u32,
derive(Debug, Serialize, Deserialize),
serde(transparent),
doc = "Represents the nth `local_cells` function call inside a task.",
Expand Down
8 changes: 4 additions & 4 deletions turbopack/crates/turbo-tasks/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use crate::{
capture_future::{self, CaptureFuture},
event::{Event, EventListener},
id::{
BackendJobId, ExecutionId, FunctionId, LocalCellId, LocalOutputId, TraitTypeId,
BackendJobId, ExecutionId, FunctionId, LocalCellId, LocalTaskId, TraitTypeId,
TRANSIENT_TASK_BIT,
},
id_factory::{IdFactory, IdFactoryWithReuse},
Expand Down Expand Up @@ -150,7 +150,7 @@ pub trait TurboTasksApi: TurboTasksCallApi + Sync + Send {
fn try_read_local_output(
&self,
_task_id: TaskId,
_local_output_id: LocalOutputId,
_local_output_id: LocalTaskId,
_consistency: ReadConsistency,
) -> Result<Result<RawVc, EventListener>> {
todo!("bgw: local outputs");
Expand All @@ -161,7 +161,7 @@ pub trait TurboTasksApi: TurboTasksCallApi + Sync + Send {
fn try_read_local_output_untracked(
&self,
_task: TaskId,
_local_output_id: LocalOutputId,
_local_output_id: LocalTaskId,
_consistency: ReadConsistency,
) -> Result<Result<RawVc, EventListener>> {
todo!("bgw: local outputs");
Expand Down Expand Up @@ -1978,7 +1978,7 @@ pub(crate) fn read_local_cell(
pub(crate) async fn read_local_output(
_this: &dyn TurboTasksApi,
_task_id: TaskId,
_local_output_id: LocalOutputId,
_local_output_id: LocalTaskId,
_consistency: ReadConsistency,
) -> Result<RawVc> {
todo!("bgw: local outputs");
Expand Down
4 changes: 2 additions & 2 deletions turbopack/crates/turbo-tasks/src/raw_vc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use thiserror::Error;
use crate::{
backend::{CellContent, TypedCellContent},
event::EventListener,
id::{ExecutionId, LocalCellId, LocalOutputId},
id::{ExecutionId, LocalCellId, LocalTaskId},
manager::{
assert_execution_id, current_task, read_local_cell, read_local_output, read_task_cell,
read_task_output, TurboTasksApi,
Expand Down Expand Up @@ -58,7 +58,7 @@ impl Display for CellId {
pub enum RawVc {
TaskOutput(TaskId),
TaskCell(TaskId, CellId),
LocalOutput(TaskId, LocalOutputId),
LocalOutput(TaskId, LocalTaskId),
#[serde(skip)]
LocalCell(ExecutionId, LocalCellId),
}
Expand Down

0 comments on commit 06c1a4f

Please sign in to comment.