Auto merge of #41308 - eddyb:order-must-be-preserved, r=nagisa
[rustbuild] Side-step HashMap iteration to preserve command-line step order. The new `HashMap` was introduced by #41227 and it accidentally randomized step order. r? @alexcrichton
This commit is contained in:
commit
fef1026bae
@ -1217,8 +1217,8 @@ invalid rule dependency graph detected, was a rule added and maybe typo'd?
|
||||
let mut visited = HashSet::new();
|
||||
visited.insert(0);
|
||||
let idx_to_node = nodes.iter().map(|p| (*p.1, p.0)).collect::<HashMap<_, _>>();
|
||||
for idx in nodes.values() {
|
||||
self.topo_sort(*idx, &idx_to_node, &edges, &mut visited, &mut order);
|
||||
for idx in 0..nodes.len() {
|
||||
self.topo_sort(idx, &idx_to_node, &edges, &mut visited, &mut order);
|
||||
}
|
||||
return order
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user