you can have // compile-pass markers in headers of compile-fail/ tests.

(It seems only `compile-fail-fulldeps/` exercises this functionality,
unfortunately.)
This commit is contained in:
Felix S. Klock II 2018-09-17 10:43:05 +02:00
parent bae2bf12f6
commit 1df6d42fff

View file

@ -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 => {