Skip to content

Commit c3a357a

Browse files
committed
Document $RUST_VERSION normalization rule
1 parent 4fa99d6 commit c3a357a

File tree

1 file changed

+2
-0
lines changed
  • src/doc/rustc-dev-guide/src/tests

1 file changed

+2
-0
lines changed

src/doc/rustc-dev-guide/src/tests/ui.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ platforms, mainly about filenames.
107107

108108
Compiletest makes the following replacements on the compiler output:
109109

110+
- The rust version string (e.g. `1.89.0-beta.1 (88b80702e 2025-06-23)`) is
111+
replaced with `$RUST_VERSION`.
110112
- The directory where the test is defined is replaced with `$DIR`. Example:
111113
`/path/to/rust/tests/ui/error-codes`
112114
- The directory to the standard library source is replaced with `$SRC_DIR`.

0 commit comments

Comments
 (0)