diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-06-04 16:46:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 16:46:11 +0800 |
| commit | e80275489dbccd50f78623f659f11ef0d5d915f6 (patch) | |
| tree | dc1e3c78e79c1942aaa3a0bbafec5ac166e2ebde | |
| parent | 5dddd0140d35208c5b1357868b174c61bc148839 (diff) | |
| parent | 94e0753504af5805ad79bd6cbe9f3cec6ebdf858 (diff) | |
| download | rust-e80275489dbccd50f78623f659f11ef0d5d915f6.tar.gz rust-e80275489dbccd50f78623f659f11ef0d5d915f6.zip | |
Merge pull request #2454 from rust-lang/tshepang-expand
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/ui.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/ui.md b/src/doc/rustc-dev-guide/src/tests/ui.md index 3402838da87..25d3efdbb82 100644 --- a/src/doc/rustc-dev-guide/src/tests/ui.md +++ b/src/doc/rustc-dev-guide/src/tests/ui.md @@ -220,8 +220,12 @@ negligible (i.e. there is no semantic difference between `//~ ERROR` and `//~ERROR` although the former is more common in the codebase). `~? <diagnostic kind>` (example being `~? ERROR`) -is used to match diagnostics without line information. -These can be placed on any line in the test file, but are conventionally placed at the end. +is used to match diagnostics _without_ line info at all, +or where the line info is outside the main test file[^main test file]. +These annotations can be placed on any line in the test file. + +[^main test file]: This is a file that has the `~?` annotations, +as distinct from aux files, or sources that we have no control over. ### Error annotation examples |
