From 8078a9d05c356cd60d76714ac7b65bd0de63f6aa Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Mon, 15 Jul 2024 16:09:51 -0700 Subject: [PATCH] Delete dead raw_vc_set module --- crates/turbo-tasks/src/lib.rs | 1 - crates/turbo-tasks/src/raw_vc_set.rs | 24 ------------------------ 2 files changed, 25 deletions(-) delete mode 100644 crates/turbo-tasks/src/raw_vc_set.rs diff --git a/crates/turbo-tasks/src/lib.rs b/crates/turbo-tasks/src/lib.rs index 84c107c055aff..6c67aae0aab27 100644 --- a/crates/turbo-tasks/src/lib.rs +++ b/crates/turbo-tasks/src/lib.rs @@ -59,7 +59,6 @@ mod once_map; pub mod persisted_graph; pub mod primitives; mod raw_vc; -mod raw_vc_set; mod rcstr; mod read_ref; pub mod registry; diff --git a/crates/turbo-tasks/src/raw_vc_set.rs b/crates/turbo-tasks/src/raw_vc_set.rs deleted file mode 100644 index 8f1942b3f6a07..0000000000000 --- a/crates/turbo-tasks/src/raw_vc_set.rs +++ /dev/null @@ -1,24 +0,0 @@ -use std::marker::PhantomData; - -use auto_hash_map::AutoSet; -// This specific macro identifier is detected by turbo-tasks-build. -use turbo_tasks_macros::primitive as __turbo_tasks_internal_primitive; - -use crate as turbo_tasks; -use crate::{RawVc, TaskId, Vc}; - -__turbo_tasks_internal_primitive!(AutoSet); - -impl Vc> { - /// Casts a `TaskId` to a `Vc>`. - /// - /// # Safety - /// - /// The `TaskId` must be point to a valid `AutoSet`. - pub unsafe fn from_task_id(task_id: TaskId) -> Self { - Vc { - node: RawVc::TaskOutput(task_id), - _t: PhantomData, - } - } -}