Skip to content

Commit 27b2b40

Browse files
Urgautshepang
authored andcommitted
Add documentation for check-cfg by-default in UI tests
1 parent 57f4083 commit 27b2b40

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/tests/headers.md

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ found in [`header.rs`] from the compiletest source.
9191
* [`error-pattern`](ui.md#error-pattern) — errors not on a line
9292
* `incremental` — incremental tests not in the incremental test-suite
9393
* `no-prefer-dynamic` — don't use `-C prefer-dynamic`, don't build as a dylib
94+
* `no-auto-check-cfg` — disable auto check-cfg (only for `--check-cfg` tests)
9495
* `force-host` — build only for the host target
9596
* [`revisions`](compiletest.md#revisions) — compile multiple times
9697
* [`forbid-output`](compiletest.md#incremental-tests) — incremental cfail rejects output pattern

src/tests/ui.md

+3
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ multiple `.stderr` files for the different outputs.
361361
In the example above, there would be a `.mir.stderr` and `.thir.stderr` file
362362
with the different outputs of the different revisions.
363363

364+
> Note: cfg revisions also work inside the source code with `#[cfg]` attributes.
365+
>
366+
> By-convention the `FALSE` cfg is used to have an always false config.
364367
365368
## Controlling pass/fail expectations
366369

0 commit comments

Comments
 (0)