Skip to content

Commit

Permalink
chore(turbo-tasks): Delete vc generics support
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Oct 7, 2024
1 parent 2bb5bd9 commit b2e000e
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 577 deletions.
1 change: 0 additions & 1 deletion turbopack/crates/turbo-tasks-backend/tests/generics.rs

This file was deleted.

1 change: 0 additions & 1 deletion turbopack/crates/turbo-tasks-memory/tests/generics.rs

This file was deleted.

221 changes: 0 additions & 221 deletions turbopack/crates/turbo-tasks-testing/tests/generics.rs

This file was deleted.

20 changes: 0 additions & 20 deletions turbopack/crates/turbo-tasks-testing/tests/local_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,6 @@ async fn test_store_and_read() -> Result<()> {
.await
}

#[tokio::test]
async fn test_store_and_read_generic() -> Result<()> {
run(&REGISTRATION, || async {
// `Vc<Vec<Vc<T>>>` is stored as `Vc<Vec<Vc<()>>>` and requires special
// transmute handling
let cells: Vc<Vec<Vc<u32>>> =
Vc::local_cell(vec![Vc::local_cell(1), Vc::local_cell(2), Vc::cell(3)]);

let mut output = Vec::new();
for el in cells.await.unwrap() {
output.push(*el.await.unwrap());
}

assert_eq!(output, vec![1, 2, 3]);

Ok(())
})
.await
}

#[turbo_tasks::function(local_cells)]
async fn returns_resolved_local_vc() -> Vc<u32> {
let cell = Vc::<u32>::cell(42);
Expand Down
83 changes: 0 additions & 83 deletions turbopack/crates/turbo-tasks/src/generics/index_map.rs

This file was deleted.

Loading

0 comments on commit b2e000e

Please sign in to comment.