Skip to content

Commit 1df6d42

Browse files
committed
you can have // compile-pass markers in headers of compile-fail/ tests.
(It seems only `compile-fail-fulldeps/` exercises this functionality, unfortunately.)
1 parent bae2bf1 commit 1df6d42

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-
ParseFail | CompileFail => false,
274+
ParseFail | CompileFail => self.props.compile_pass,
275275
RunPass => true,
276276
Ui => self.props.compile_pass,
277277
Incremental => {

0 commit comments

Comments
 (0)