Skip to content

Commit 3bd1005

Browse files
committed
regain determinism
1 parent 8c7f6af commit 3bd1005

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/core/resolver/conflict_cache.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ enum ConflictStoreTrie {
1111
Leaf(BTreeMap<PackageId, ConflictReason>),
1212
/// a Node is a map from an element to a subTrie where
1313
/// all the Sets in the subTrie contains that element.
14-
Node(HashMap<PackageId, ConflictStoreTrie>),
14+
Node(BTreeMap<PackageId, ConflictStoreTrie>),
1515
}
1616

1717
impl ConflictStoreTrie {
@@ -59,7 +59,7 @@ impl ConflictStoreTrie {
5959
if let Some(pid) = iter.next() {
6060
if let ConflictStoreTrie::Node(p) = self {
6161
p.entry(pid)
62-
.or_insert_with(|| ConflictStoreTrie::Node(HashMap::new()))
62+
.or_insert_with(|| ConflictStoreTrie::Node(BTreeMap::new()))
6363
.insert(iter, con);
6464
} // else, We already have a subset of this in the ConflictStore
6565
} else {
@@ -159,7 +159,7 @@ impl ConflictCache {
159159
pub fn insert(&mut self, dep: &Dependency, con: &BTreeMap<PackageId, ConflictReason>) {
160160
self.con_from_dep
161161
.entry(dep.clone())
162-
.or_insert_with(|| ConflictStoreTrie::Node(HashMap::new()))
162+
.or_insert_with(|| ConflictStoreTrie::Node(BTreeMap::new()))
163163
.insert(con.keys().cloned(), con.clone());
164164

165165
trace!(

0 commit comments

Comments
 (0)