Skip to content

compiletest does not signal when a ui (or compile-fail) test with //~ WARN gets unexpected warnings #55693

Closed
@pnkfelix

Description

@pnkfelix

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.

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustcP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions