mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
Long ago, UI tests were divided into "compile" and "run" tests. Later, the compile tests were further subdivided into "check" and "build" tests, to speed up tests that don't need a full build. The same split was never applied to incremental test revisions, so the only way to perform a check build in incremental tests is (confusingly) to use a `cfail` revision and then specify `//@ check-fail` or `//@ check-pass`. This PR makes room for dedicated check-fail and check-pass revisions by renaming the existing `cfail` and `cpass` revisions to `bfail` and `bpass`, since they currently perform a full build.
15 lines
201 B
Rust
15 lines
201 B
Rust
//@ revisions: rpass bfail
|
|
|
|
enum A {
|
|
//[bfail]~^ ERROR recursive types `A` and `C` have infinite size [E0072]
|
|
B(C),
|
|
}
|
|
|
|
#[cfg(rpass)]
|
|
struct C(Box<A>);
|
|
|
|
#[cfg(bfail)]
|
|
struct C(A);
|
|
|
|
fn main() {}
|