We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a875816 commit 69e00e8Copy full SHA for 69e00e8
src/cargo/core/resolver/mod.rs
@@ -523,12 +523,13 @@ fn activate_deps_loop(
523
}
524
};
525
526
- // If we're only here for the error messages then we know
527
- // one of our candidate deps will fail, meaning we will
528
- // 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,
529
+ // meaning we will fail and that none of the backtrack frames will find a
530
// candidate that will help. Consequently let's clean up the
531
// no longer needed backtrack frames.
- if activate_for_error_message {
532
+ if !backtracked && activate_for_error_message {
533
backtrack_stack.clear();
534
535
0 commit comments