Skip to content

Commit 69e00e8

Browse files
committed
this oddly worked
1 parent a875816 commit 69e00e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cargo/core/resolver/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,13 @@ fn activate_deps_loop(
523523
}
524524
};
525525

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
526+
// If we're only here for the error messages
527+
// and we did not use backtracking to explore our deps
528+
// 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
529530
// candidate that will help. Consequently let's clean up the
530531
// no longer needed backtrack frames.
531-
if activate_for_error_message {
532+
if !backtracked && activate_for_error_message {
532533
backtrack_stack.clear();
533534
}
534535

0 commit comments

Comments
 (0)