Unverified Commit 6df0b7b9 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Turbopack: Fix flake in task_statistics unit test (#89981)

If we don't explicitly return a `Vc::cell(())` here, then `<() as dyn
turbo_tasks::vc::default::ValueDefault>::value_default` gets called in a
non-deterministic way.
  
That's not something we care about testing here, so just add a an
explicit `Vc::cell(())` call to avoid it.
parent d45f83fb
......@@ -362,7 +362,9 @@ fn inline_definitions() -> Result<Vc<()>> {
#[turbo_tasks::value_trait]
trait Trait {
#[turbo_tasks::function]
fn trait_fn(&self) {}
fn trait_fn(&self) -> Vc<()> {
Vc::cell(())
}
}
#[turbo_tasks::value_impl]
......
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