Rollup merge of #21550 - FlaPer87:fix-compiletest, r=huonw

This commit is contained in:
Flavio Percoco Premoli 2015-01-24 10:42:41 +01:00
commit a1f15414f6
1 changed files with 15 additions and 0 deletions

View File

@ -12,6 +12,20 @@ pub use self::Mode::*;
use std::fmt; use std::fmt;
use std::str::FromStr; 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)] #[derive(Clone, PartialEq, Debug)]
pub enum Mode { pub enum Mode {
CompileFail, CompileFail,
@ -24,6 +38,7 @@ pub enum Mode {
Codegen Codegen
} }
impl Copy for Mode {} impl Copy for Mode {}
impl FromStr for Mode { impl FromStr for Mode {