mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
72abf370bb
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.
18 lines
388 B
Rust
18 lines
388 B
Rust
//@ revisions: bpass1 bpass2
|
|
//@ ignore-backends: gcc
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
use std::fmt::Debug;
|
|
|
|
// MCVE kindly provided by Nilstrieb at
|
|
// https://github.com/rust-lang/rust/issues/108481#issuecomment-1493080185
|
|
|
|
#[derive(Debug)]
|
|
pub struct ConstGeneric<const CHUNK_SIZE: usize> {
|
|
_p: [(); CHUNK_SIZE],
|
|
}
|
|
|
|
#[cfg(bpass1)]
|
|
impl<const CHUNK_SIZE: usize> ConstGeneric<CHUNK_SIZE> {}
|