Skip to content

Commit 07425fe

Browse files
authored
Add a note about checks with multiple revisions (rust-lang#1963)
1 parent f703523 commit 07425fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tests/compiletest.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,7 @@ You can therefore use `#[cfg(foo)]` etc within the test to tweak
593593
each of these results.
594594

595595
You can also customize headers and expected error messages to a particular
596-
revision. To do this, add `[foo]` (or `bar`, `baz`, etc) after the `//`
597-
comment, like so:
596+
revision. To do this, add `[revision-name]` after the `//` comment, like so:
598597

599598
```rust,ignore
600599
// A flag to pass in only for cfg `foo`:
@@ -606,6 +605,9 @@ fn test_foo() {
606605
}
607606
```
608607

608+
Multiple revisions can be specified in a comma-separated list, such as
609+
`//[foo,bar,baz]~^`.
610+
609611
In test suites that use the LLVM [FileCheck] tool, the current revision name is
610612
also registered as an additional prefix for FileCheck directives:
611613

0 commit comments

Comments
 (0)