test directive can appear anywhere in the file

This commit is contained in:
Tshepang Mbambo 2025-04-03 02:04:49 +02:00 committed by GitHub
parent c834b7ed95
commit a90cb7416c
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.