Skip to content

Commit

Permalink
this oddly worked
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Sep 12, 2018
1 parent a875816 commit 69e00e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cargo/core/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 69e00e8

Please sign in to comment.