From: Eh2406 Date: Sat, 1 Dec 2018 15:04:03 +0000 (-0500) Subject: regain determinism X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3bd1005c0da0bab2d0be3e43f5587b0a0123a87b;p=cargo.git regain determinism --- diff --git a/src/cargo/core/resolver/conflict_cache.rs b/src/cargo/core/resolver/conflict_cache.rs index 29aac8fd2..479c3029d 100644 --- a/src/cargo/core/resolver/conflict_cache.rs +++ b/src/cargo/core/resolver/conflict_cache.rs @@ -11,7 +11,7 @@ enum ConflictStoreTrie { Leaf(BTreeMap), /// a Node is a map from an element to a subTrie where /// all the Sets in the subTrie contains that element. - Node(HashMap), + Node(BTreeMap), } impl ConflictStoreTrie { @@ -59,7 +59,7 @@ impl ConflictStoreTrie { if let Some(pid) = iter.next() { if let ConflictStoreTrie::Node(p) = self { p.entry(pid) - .or_insert_with(|| ConflictStoreTrie::Node(HashMap::new())) + .or_insert_with(|| ConflictStoreTrie::Node(BTreeMap::new())) .insert(iter, con); } // else, We already have a subset of this in the ConflictStore } else { @@ -159,7 +159,7 @@ impl ConflictCache { pub fn insert(&mut self, dep: &Dependency, con: &BTreeMap) { self.con_from_dep .entry(dep.clone()) - .or_insert_with(|| ConflictStoreTrie::Node(HashMap::new())) + .or_insert_with(|| ConflictStoreTrie::Node(BTreeMap::new())) .insert(con.keys().cloned(), con.clone()); trace!(