Rollup merge of #21550 - FlaPer87:fix-compiletest, r=huonw
This commit is contained in:
commit
a1f15414f6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue