From a85f9b6cf2142a5061ed4b4020be160444b5c49a Mon Sep 17 00:00:00 2001 From: Aidan Hobson Sayers Date: Tue, 6 Feb 2018 02:15:17 +0000 Subject: [PATCH] Add reference to clarifying comment --- src/cargo/core/resolver/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cargo/core/resolver/mod.rs b/src/cargo/core/resolver/mod.rs index 24dab3646..7977e958a 100644 --- a/src/cargo/core/resolver/mod.rs +++ b/src/cargo/core/resolver/mod.rs @@ -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>, cx: &mut Context<'a>, remaining_deps: &mut BinaryHeap, -- 2.30.2