From 69e00e838328c09fca2a003cfd7e038a35e044a5 Mon Sep 17 00:00:00 2001 From: Eh2406 Date: Wed, 12 Sep 2018 14:02:15 -0400 Subject: [PATCH] this oddly worked --- src/cargo/core/resolver/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cargo/core/resolver/mod.rs b/src/cargo/core/resolver/mod.rs index 3957976d3cb..fc6e452d9b7 100644 --- a/src/cargo/core/resolver/mod.rs +++ b/src/cargo/core/resolver/mod.rs @@ -523,12 +523,13 @@ fn activate_deps_loop( } }; - // If we're only here for the error messages then we know - // one of our candidate deps will fail, meaning we will - // fail and that none of the backtrack frames will find a + // If we're only here for the error messages + // and we did not use backtracking to explore our deps + // then we know one of our candidate deps will fail, + // meaning we will fail and that none of the backtrack frames will find a // candidate that will help. Consequently let's clean up the // no longer needed backtrack frames. - if activate_for_error_message { + if !backtracked && activate_for_error_message { backtrack_stack.clear(); }