]> git.lizzy.rs Git - rust.git/commitdiff
Simplify compiletest.
authorScott Olson <scott@solson.me>
Mon, 13 Jun 2016 04:26:54 +0000 (22:26 -0600)
committerScott Olson <scott@solson.me>
Mon, 13 Jun 2016 04:26:54 +0000 (22:26 -0600)
tests/compiletest.rs

index 435ad0f51a2711e9388e533f048038c74b6e4c4e..76b5b5f6e9638efe8628730e5b1574d3704002a7 100644 (file)
@@ -23,7 +23,7 @@ fn run_mode(mode: &'static str) {
     for &target in targets {
         let mut config = compiletest::default_config();
         config.host_rustcflags = Some(sysroot_flag.clone());
-        config.mode = mode.parse().ok().expect("Invalid mode");
+        config.mode = mode.parse().expect("Invalid mode");
         config.run_lib_path = format!("{}/lib/rustlib/{}/lib", sysroot, target);
         config.rustc_path = "target/debug/miri".into();
         config.src_base = PathBuf::from(format!("tests/{}", mode));