]> git.lizzy.rs Git - rust.git/commit
Auto merge of #66932 - rust-lang:pass-check-runfail, r=petrochenkov
authorbors <bors@rust-lang.org>
Sun, 22 Dec 2019 00:10:13 +0000 (00:10 +0000)
committerbors <bors@rust-lang.org>
Sun, 22 Dec 2019 00:10:13 +0000 (00:10 +0000)
commit6e9172f633dabec3e084f1e3fd9ac3695f27fba0
tree6dc757aca87536433ba07a4be9e391b7f6169091
parent5535c253140bd0e48488fad43e60013b48ecd716
parent73e6a2174af1ae3df32890b08696c978231a0485
Auto merge of #66932 - rust-lang:pass-check-runfail, r=petrochenkov

Revamp `// run-fail` wrt. `--pass` & support `// build-fail` & `// check-fail`

Revamp how `// run-fail` tests work internally by having a separate `FailMode` that does not interfere with `PassMode`. In particular, `--pass check` will now have no effect on `// *-fail` tests. Moreover, new test annotations `// check-fail` (the default) and `// build-fail` are added. The latter is useful to distinguish post-monomorphization failures from pre-monomorphization failures as seen throughout the PR. Finally, ensure that non-`Ui` tests do not listen to `--pass check` such that the flag can be used with e.g. `./x.py test --pass check` directly.

Fixes #66929.
Fixes #67128.

r? @petrochenkov
cc @RalfJung @ninjasource