diff --git a/crates/turbo-tasks/src/capture_future.rs b/crates/turbo-tasks/src/capture_future.rs index 30b87aefdbb01..8a7b5d621b2e4 100644 --- a/crates/turbo-tasks/src/capture_future.rs +++ b/crates/turbo-tasks/src/capture_future.rs @@ -51,7 +51,7 @@ pub fn add_allocation_info(alloc_info: AllocationInfo) { } impl> Future for CaptureFuture { - type Output = (T, Duration, Instant, usize); + type Output = (T, Duration, usize); fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { let this = self.project(); @@ -68,7 +68,7 @@ impl> Future for CaptureFuture { let (duration, allocations, deallocations) = *this.cell.lock().unwrap(); let memory_usage = (*this.allocations + allocations) .saturating_sub(*this.deallocations + deallocations); - Poll::Ready((r, *this.duration + duration, start + elapsed, memory_usage)) + Poll::Ready((r, *this.duration + duration, memory_usage)) } Poll::Pending => Poll::Pending, } diff --git a/crates/turbo-tasks/src/manager.rs b/crates/turbo-tasks/src/manager.rs index 87fded4ccd50c..c179b871b5554 100644 --- a/crates/turbo-tasks/src/manager.rs +++ b/crates/turbo-tasks/src/manager.rs @@ -445,7 +445,7 @@ impl TurboTasks { }; async { - let (result, duration, _instant, memory_usage) = + let (result, duration, memory_usage) = CaptureFuture::new(AssertUnwindSafe(future).catch_unwind()) .await;