diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-04-13 11:16:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 16:16:44 +0100 |
| commit | da5bc8fb879617f97faaf9fc8e8d05ffa5c8dbd2 (patch) | |
| tree | ba8252ca899f5bf080a32d58c56dbd2d67ce8c13 /src/doc/rustc-dev-guide | |
| parent | 245b1400ac143ced80b567f617a7a05db48a2849 (diff) | |
| download | rust-da5bc8fb879617f97faaf9fc8e8d05ffa5c8dbd2.tar.gz rust-da5bc8fb879617f97faaf9fc8e8d05ffa5c8dbd2.zip | |
Add a note about checks with multiple revisions (#1963)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/compiletest.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/compiletest.md b/src/doc/rustc-dev-guide/src/tests/compiletest.md index 6321d4a7492..7c3c853fec7 100644 --- a/src/doc/rustc-dev-guide/src/tests/compiletest.md +++ b/src/doc/rustc-dev-guide/src/tests/compiletest.md @@ -593,8 +593,7 @@ You can therefore use `#[cfg(foo)]` etc within the test to tweak each of these results. You can also customize headers and expected error messages to a particular -revision. To do this, add `[foo]` (or `bar`, `baz`, etc) after the `//` -comment, like so: +revision. To do this, add `[revision-name]` after the `//` comment, like so: ```rust,ignore // A flag to pass in only for cfg `foo`: @@ -606,6 +605,9 @@ fn test_foo() { } ``` +Multiple revisions can be specified in a comma-separated list, such as +`//[foo,bar,baz]~^`. + In test suites that use the LLVM [FileCheck] tool, the current revision name is also registered as an additional prefix for FileCheck directives: |
