Skip to content

Commit e802754

Browse files
authored
Merge pull request rust-lang#2454 from rust-lang/tshepang-expand
2 parents 5dddd01 + 94e0753 commit e802754

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,12 @@ negligible (i.e. there is no semantic difference between `//~ ERROR` and
220220
`//~ERROR` although the former is more common in the codebase).
221221

222222
`~? <diagnostic kind>` (example being `~? ERROR`)
223-
is used to match diagnostics without line information.
224-
These can be placed on any line in the test file, but are conventionally placed at the end.
223+
is used to match diagnostics _without_ line info at all,
224+
or where the line info is outside the main test file[^main test file].
225+
These annotations can be placed on any line in the test file.
226+
227+
[^main test file]: This is a file that has the `~?` annotations,
228+
as distinct from aux files, or sources that we have no control over.
225229

226230
### Error annotation examples
227231

0 commit comments

Comments
 (0)