You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #139618 - petrochenkov:virsugg, r=jieyouxu
compiletest: Make `SUGGESTION` annotations viral
If one of them is expected in a test file, then others should be annotated as well, in the same way as with `HELP`s and `NOTE`s.
This doesn't require much of an additional annotation burden, but simplifies the rules.
r? ```@jieyouxu```
Copy file name to clipboardExpand all lines: src/doc/rustc-dev-guide/src/tests/directives.md
+1
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ for more details.
101
101
|`normalize-stdout`| Normalize actual stdout with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot |`ui`, `incremental`|`"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax |
102
102
|`dont-check-compiler-stderr`| Don't check actual compiler stderr vs stderr snapshot |`ui`| N/A |
103
103
|`dont-check-compiler-stdout`| Don't check actual compiler stdout vs stdout snapshot |`ui`| N/A |
104
+
|`dont-require-annotations`| Don't require line annotations for the given diagnostic kind (`//~ KIND`) to be exhaustive |`ui`, `incremental`|`ERROR`, `WARN`, `NOTE`, `HELP`, `SUGGESTION`|
104
105
|`run-rustfix`| Apply all suggestions via `rustfix`, snapshot fixed output, and check fixed output builds |`ui`| N/A |
105
106
|`rustfix-only-machine-applicable`|`run-rustfix` but only machine-applicable suggestions |`ui`| N/A |
106
107
|`exec-env`| Env var to set when executing a test |`ui`, `crashes`|`<KEY>=<VALUE>`|
0 commit comments