Skip to content

Commit 146c462

Browse files
committed
rustbuild: use a BTreeMap for the ruleset for determinism.
1 parent e1cb9ba commit 146c462

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/step.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
//! along with the actual implementation elsewhere. You can find more comments
2727
//! about how to define rules themselves below.
2828
29-
use std::collections::{HashMap, HashSet};
29+
use std::collections::{BTreeMap, HashSet};
3030
use std::mem;
3131

3232
use check::{self, TestKind};
@@ -866,7 +866,7 @@ impl<'a, 'b> Drop for RuleBuilder<'a, 'b> {
866866
pub struct Rules<'a> {
867867
build: &'a Build,
868868
sbuild: Step<'a>,
869-
rules: HashMap<&'a str, Rule<'a>>,
869+
rules: BTreeMap<&'a str, Rule<'a>>,
870870
}
871871

872872
impl<'a> Rules<'a> {
@@ -879,7 +879,7 @@ impl<'a> Rules<'a> {
879879
host: &build.config.build,
880880
name: "",
881881
},
882-
rules: HashMap::new(),
882+
rules: BTreeMap::new(),
883883
}
884884
}
885885

0 commit comments

Comments
 (0)