Skip to content

Commit

Permalink
Rollup merge of rust-lang#21550 - FlaPer87:fix-compiletest, r=huonw
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Jan 24, 2015
2 parents 8a2eee6 + 06714c2 commit a1f1541
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 @@ -12,6 +12,20 @@ pub use self::Mode::*;
use std::fmt;
use std::str::FromStr;

#[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 @@ -24,6 +38,7 @@ pub enum Mode {
Codegen
}


impl Copy for Mode {}

impl FromStr for Mode {
Expand Down

0 comments on commit a1f1541

Please sign in to comment.