Skip to content

Commit

Permalink
Rollup merge of #21550 - FlaPer87:fix-compiletest, r=huonw
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Jan 23, 2015
2 parents e8f9104 + 06714c2 commit fef3b6d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/compiletest/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ use std::fmt;
use std::str::FromStr;
use regex::Regex;

#[cfg(stage0)] // NOTE: remove impl after snapshot
#[derive(Clone, PartialEq, Show)]
pub enum Mode {
CompileFail,
RunFail,
RunPass,
RunPassValgrind,
Pretty,
DebugInfoGdb,
DebugInfoLldb,
Codegen
}

#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
#[derive(Clone, PartialEq, Debug)]
pub enum Mode {
CompileFail,
Expand All @@ -25,6 +39,7 @@ pub enum Mode {
Codegen
}


impl Copy for Mode {}

impl FromStr for Mode {
Expand Down

0 comments on commit fef3b6d

Please sign in to comment.