about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-15 06:52:18 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-21 16:21:38 +0200
commita66b7d4e9da5273b12bb610e05dbf2bb190f431e (patch)
tree84c9b9c25aaac42e4ba6b4d179c7e7dc03931ebc /src/tools
parent2664db235cc4a6d7edd5f95223c184f91b594dcb (diff)
downloadrust-a66b7d4e9da5273b12bb610e05dbf2bb190f431e.tar.gz
rust-a66b7d4e9da5273b12bb610e05dbf2bb190f431e.zip
Mark `ParseFail` as tests that are not expected to compile.
(I did not notice earlier that `ParseFail` delegates to `fn run_cfail_test`.)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 3f0e4cd4cc4..85ef215b5cf 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 {
-            CompileFail => false,
+            ParseFail | CompileFail => false,
             RunPass => true,
             Ui => self.props.compile_pass,
             mode => panic!("unimplemented for mode {:?}", mode),