Skip to content

Commit fd06af4

Browse files
committed
better error for benchmarking
1 parent e3b44cc commit fd06af4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cargo/core/resolver/types.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ impl ResolverProgress {
5454
// with all the algorithm improvements.
5555
// If any of them are removed then it takes more than I am willing to measure.
5656
// So lets fail the test fast if we have ben running for two long.
57-
debug_assert!(self.ticks < 50_000);
57+
debug_assert!(
58+
self.ticks < 50_000,
59+
"got to 50_000 ticks in {:?}",
60+
self.start.elapsed()
61+
);
5862
// The largest test in our suite takes less then 30 sec
5963
// with all the improvements to how fast a tick can go.
6064
// If any of them are removed then it takes more than I am willing to measure.

0 commit comments

Comments
 (0)