Skip to content

Commit a66b7d4

Browse files
committed
Mark ParseFail as tests that are not expected to compile.
(I did not notice earlier that `ParseFail` delegates to `fn run_cfail_test`.)
1 parent 2664db2 commit a66b7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<'test> TestCx<'test> {
271271

272272
fn should_compile_successfully(&self) -> bool {
273273
match self.config.mode {
274-
CompileFail => false,
274+
ParseFail | CompileFail => false,
275275
RunPass => true,
276276
Ui => self.props.compile_pass,
277277
mode => panic!("unimplemented for mode {:?}", mode),

0 commit comments

Comments
 (0)