Add reference to clarifying comment
authorAidan Hobson Sayers <aidanhs@cantab.net>
Tue, 6 Feb 2018 02:15:17 +0000 (02:15 +0000)
committerAidan Hobson Sayers <aidanhs@cantab.net>
Tue, 6 Feb 2018 02:15:17 +0000 (02:15 +0000)
src/cargo/core/resolver/mod.rs

index 24dab3646229d9ec8fd300f0f34567a8cc3efc7a..7977e958aa2005165232c3496079efa43acae63f 100644 (file)
@@ -753,6 +753,8 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
 // changed (possibly relaxing version constraints). If the outcome could differ,
 // resets `cx` and `remaining_deps` to that level and returns the
 // next candidate. If all candidates have been exhausted, returns None.
+// Read https://github.com/rust-lang/cargo/pull/4834#issuecomment-362871537 for
+// a more detailed explanation of the logic here.
 fn find_candidate<'a>(backtrack_stack: &mut Vec<BacktrackFrame<'a>>,
                       cx: &mut Context<'a>,
                       remaining_deps: &mut BinaryHeap<DepsFrame>,