File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/doc/rustc-dev-guide/src/tests Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments