diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 58510af4dfb..401dec7b184 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -262,11 +262,12 @@ impl<'test> TestCx<'test> { } fn should_run_successfully(&self) -> bool { - match self.config.mode { - RunPass => !self.props.skip_codegen, + let run_pass = match self.config.mode { + RunPass => true, Ui => self.props.run_pass, _ => unimplemented!(), - } + }; + return run_pass && !self.props.skip_codegen; } fn should_compile_successfully(&self) -> bool {