Merge pull request #2314 from rust-lang/tshepang-patch-3

test directive can appear anywhere in the file
This commit is contained in:
León Orell Valerian Liehr 2025-04-03 03:19:07 +02:00 committed by GitHub
commit eb02e6bf34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@
FIXME(jieyouxu) completely revise this chapter. FIXME(jieyouxu) completely revise this chapter.
--> -->
Directives are special comments that tell compiletest how to build and interpret a test. They must appear before the Rust source in the test. They may also appear in `rmake.rs` [run-make tests](compiletest.md#run-make-tests). Directives are special comments that tell compiletest how to build and interpret a test.
They may also appear in `rmake.rs` [run-make tests](compiletest.md#run-make-tests).
They are normally put after the short comment that explains the point of this They are normally put after the short comment that explains the point of this
test. Compiletest test suites use `//@` to signal that a comment is a directive. test. Compiletest test suites use `//@` to signal that a comment is a directive.