From fd06af4e0bf38e174dd27babffe2a5dc19c1ba16 Mon Sep 17 00:00:00 2001 From: Eh2406 Date: Thu, 4 Oct 2018 13:18:18 -0400 Subject: [PATCH] better error for benchmarking --- src/cargo/core/resolver/types.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/resolver/types.rs b/src/cargo/core/resolver/types.rs index d916d7ad62c..db1570f3705 100644 --- a/src/cargo/core/resolver/types.rs +++ b/src/cargo/core/resolver/types.rs @@ -54,7 +54,11 @@ impl ResolverProgress { // with all the algorithm improvements. // If any of them are removed then it takes more than I am willing to measure. // So lets fail the test fast if we have ben running for two long. - debug_assert!(self.ticks < 50_000); + debug_assert!( + self.ticks < 50_000, + "got to 50_000 ticks in {:?}", + self.start.elapsed() + ); // The largest test in our suite takes less then 30 sec // with all the improvements to how fast a tick can go. // If any of them are removed then it takes more than I am willing to measure.