diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-09-17 10:43:05 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-09-21 16:21:39 +0200 |
| commit | 1df6d42fff6da9aeb3b3ced33de00407e22787d3 (patch) | |
| tree | c81c6ef1ce4b5b0a4da3a3665c7b487bd7414ae9 | |
| parent | bae2bf12f6ff454724bf87234789053ceca94538 (diff) | |
| download | rust-1df6d42fff6da9aeb3b3ced33de00407e22787d3.tar.gz rust-1df6d42fff6da9aeb3b3ced33de00407e22787d3.zip | |
you can have `// compile-pass` markers in headers of `compile-fail/` tests.
(It seems only `compile-fail-fulldeps/` exercises this functionality, unfortunately.)
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ impl<'test> TestCx<'test> { 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 => { |
