Make test steps sortable

Ensures that test cases will be somewhat easier to write.
This commit is contained in:
Mark Simulacrum
2018-03-10 07:01:06 -07:00
parent cd33d3a0e4
commit fde70b0963
4 changed files with 33 additions and 19 deletions

View File

@@ -198,7 +198,7 @@ use toolstate::ToolState;
/// Each compiler has a `stage` that it is associated with and a `host` that
/// corresponds to the platform the compiler runs on. This structure is used as
/// a parameter to many methods below.
#[derive(Eq, PartialEq, Clone, Copy, Hash, Debug)]
#[derive(Eq, PartialOrd, Ord, PartialEq, Clone, Copy, Hash, Debug)]
pub struct Compiler {
stage: u32,
host: Interned<String>,