@@ -28,7 +28,7 @@ next to the test. See [Output comparison](#output-comparison) for more.
2828Additionally, errors and warnings should be annotated with comments within the
2929source file. See [ Error annotations] ( #error-annotations ) for more.
3030
31- Compiletest [ directives] ( headers .md) in the form of special comments prefixed
31+ Compiletest [ directives] ( directives .md) in the form of special comments prefixed
3232with ` //@ ` control how the test is compiled and what the expected behavior is.
3333
3434Tests are expected to fail to compile, since most tests are testing compiler
@@ -78,7 +78,7 @@ There can be multiple stdout/stderr files. The general form is:
7878A simple example would be ` foo.stderr ` next to a ` foo.rs ` test.
7979A more complex example would be ` foo.my-revision.polonius.stderr ` .
8080
81- There are several [ directives] ( headers .md) which will change how compiletest
81+ There are several [ directives] ( directives .md) which will change how compiletest
8282will check for output files:
8383
8484- ` stderr-per-bitwidth ` — checks separate output files based on the target
@@ -168,7 +168,7 @@ usage example.
168168[ `main.stderr` ] : https://github.com/rust-lang/rust/blob/master/tests/ui/transmute/main.stderr
169169
170170Besides ` normalize-stderr-32bit ` and ` -64bit ` , one may use any target
171- information or stage supported by [ ` ignore-X ` ] ( headers .md#ignoring-tests) here
171+ information or stage supported by [ ` ignore-X ` ] ( directives .md#ignoring-tests) here
172172as well (e.g. ` normalize-stderr-windows ` or simply ` normalize-stderr-test ` for
173173unconditional replacement).
174174
@@ -276,7 +276,7 @@ fn main() {
276276
277277### ` error-pattern `
278278
279- The ` error-pattern ` [ directive] ( headers .md) can be used for messages that don't
279+ The ` error-pattern ` [ directive] ( directives .md) can be used for messages that don't
280280have a specific span.
281281
282282Let's think about this test:
@@ -366,7 +366,7 @@ By default, a UI test is expected to **generate a compile error** because most
366366of the tests are checking for invalid input and error diagnostics. However, you
367367can also make UI tests where compilation is expected to succeed, and you can
368368even run the resulting program. Just add one of the following
369- [ directives] ( headers .md) :
369+ [ directives] ( directives .md) :
370370
371371- Pass directives:
372372 - ` //@ check-pass ` — compilation should succeed but skip codegen
0 commit comments