From 2f2219becbb48e3ae65a3176e353b8e1112ba2e9 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 12 Jun 2016 22:26:54 -0600 Subject: [PATCH] Simplify compiletest. --- tests/compiletest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 435ad0f51a27..76b5b5f6e963 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -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));