From 1df6d42fff6da9aeb3b3ced33de00407e22787d3 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 17 Sep 2018 10:43:05 +0200 Subject: [PATCH] you can have `// compile-pass` markers in headers of `compile-fail/` tests. (It seems only `compile-fail-fulldeps/` exercises this functionality, unfortunately.) --- src/tools/compiletest/src/runtest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 860a1439f6c..58510af4dfb 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -271,7 +271,7 @@ fn should_run_successfully(&self) -> bool { fn should_compile_successfully(&self) -> bool { match self.config.mode { - ParseFail | CompileFail => false, + ParseFail | CompileFail => self.props.compile_pass, RunPass => true, Ui => self.props.compile_pass, Incremental => { -- 2.44.0