Skip to content

Commit 2f2219b

Browse files
committed
Simplify compiletest.
1 parent 82daebc commit 2f2219b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn run_mode(mode: &'static str) {
2323
for &target in targets {
2424
let mut config = compiletest::default_config();
2525
config.host_rustcflags = Some(sysroot_flag.clone());
26-
config.mode = mode.parse().ok().expect("Invalid mode");
26+
config.mode = mode.parse().expect("Invalid mode");
2727
config.run_lib_path = format!("{}/lib/rustlib/{}/lib", sysroot, target);
2828
config.rustc_path = "target/debug/miri".into();
2929
config.src_base = PathBuf::from(format!("tests/{}", mode));

0 commit comments

Comments
 (0)