compiletest does not signal when a ui (or compile-fail) test with //~ WARN
gets unexpected warnings
#55693
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In
compiletest
, a test that has a//~ WARN ...
comment will not tell you if other undocumented warnings were also emitted.If I recall correctly, we have a policy that if a test has annotations of the form
//~ KIND
(where KIND is one of ERROR/WARN/HELP/INFO`, then we will check that the set of annotations of that form properly matches what the compiler is emitting.But it looks like we only actually follow the above policy completely for KIND == ERROR, not the others.
The text was updated successfully, but these errors were encountered: