]> git.lizzy.rs Git - rust.git/blobdiff - src/compiletest/common.rs
Implement the translation item collector.
[rust.git] / src / compiletest / common.rs
index 3f34c89d18fb29dad2ba6076ea629ee01b00ee50..e66094dc3954b9d4bf7c13a0e8c3b6f3980e9373 100644 (file)
@@ -25,6 +25,7 @@ pub enum Mode {
     DebugInfoLldb,
     Codegen,
     Rustdoc,
+    CodegenUnits
 }
 
 impl FromStr for Mode {
@@ -41,6 +42,7 @@ fn from_str(s: &str) -> Result<Mode, ()> {
           "debuginfo-gdb" => Ok(DebugInfoGdb),
           "codegen" => Ok(Codegen),
           "rustdoc" => Ok(Rustdoc),
+          "codegen-units" => Ok(CodegenUnits),
           _ => Err(()),
         }
     }
@@ -59,6 +61,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
             DebugInfoLldb => "debuginfo-lldb",
             Codegen => "codegen",
             Rustdoc => "rustdoc",
+            CodegenUnits => "codegen-units",
         }, f)
     }
 }
@@ -124,9 +127,6 @@ pub struct Config {
     // Flags to pass to the compiler when building for the target
     pub target_rustcflags: Option<String>,
 
-    // Run tests using the JIT
-    pub jit: bool,
-
     // Target system to be tested
     pub target: String,