From 146c462e1af804c56542f2e33e6769d388d04f04 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Tue, 28 Feb 2017 20:12:26 +0200 Subject: [PATCH] rustbuild: use a BTreeMap for the ruleset for determinism. --- src/bootstrap/step.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index dcd3407e174..01431c50ed7 100644 --- a/src/bootstrap/step.rs +++ b/src/bootstrap/step.rs @@ -26,7 +26,7 @@ //! along with the actual implementation elsewhere. You can find more comments //! about how to define rules themselves below. -use std::collections::{HashMap, HashSet}; +use std::collections::{BTreeMap, HashSet}; use std::mem; use check::{self, TestKind}; @@ -866,7 +866,7 @@ impl<'a, 'b> Drop for RuleBuilder<'a, 'b> { pub struct Rules<'a> { build: &'a Build, sbuild: Step<'a>, - rules: HashMap<&'a str, Rule<'a>>, + rules: BTreeMap<&'a str, Rule<'a>>, } impl<'a> Rules<'a> { @@ -879,7 +879,7 @@ impl<'a> Rules<'a> { host: &build.config.build, name: "", }, - rules: HashMap::new(), + rules: BTreeMap::new(), } }