Skip to content

Commit bdee52e

Browse files
committed
Add docs
1 parent 6a29fab commit bdee52e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

COMPILER_TESTS.md

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ whole, instead of just a few lines inside the test.
4545
* `should-fail` indicates that the test should fail; used for "meta testing",
4646
where we test the compiletest program itself to check that it will generate
4747
errors in appropriate scenarios. This header is ignored for pretty-printer tests.
48+
* `gate-test-X` where `X` is a feature marks the test as "gate test" for feature X.
49+
Such tests are supposed to ensure that the compiler errors when usage of a gated
50+
feature is attempted without the proper `#![feature(X)]` tag.
51+
Each unstable lang feature is required to have a gate test.
4852

4953
## Revisions
5054

0 commit comments

Comments
 (0)