Unverified Commit cfa30e95 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Import SharedReference in mutable cell update

Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent b6920088
......@@ -5,7 +5,7 @@ use smallvec::SmallVec;
#[cfg(feature = "task_dirty_cause")]
use turbo_tasks::TaskDirtyCause;
use turbo_tasks::{
CellId, FxIndexMap, TaskId, TypedSharedReference, ValueTypePersistence,
CellId, FxIndexMap, SharedReference, TaskId, TypedSharedReference, ValueTypePersistence,
backend::{CellContent, CellHash, VerificationMode},
registry,
};
......@@ -28,9 +28,9 @@ use crate::{
pub fn update_mutable_cell(
task_id: TaskId,
cell: CellId,
content: Option<turbo_tasks::SharedReference>,
content: Option<SharedReference>,
ctx: &mut ExecuteContext<'_>,
) -> Option<turbo_tasks::SharedReference> {
) -> Option<SharedReference> {
let mut task = ctx.task(task_id, TaskDataCategory::All);
let mut dependents: FxIndexMap<TaskId, SmallVec<[Option<u64>; 2]>> = FxIndexMap::default();
for dependent in task.iter_cell_dependents().filter(|r| r.cell == cell) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment