Run-pass checks for warnings, notes, etc. #59659
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-testsuite
Area: The testsuite used to check the correctness of rustc
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When writing #59658, I found it neccesary to check for warnings in a
run-pass
test becausedeny(warning)
would observably change the warning pattern I was testing for in the first place.It would be nice if
run-pass
would check forWARN
,NOTE
,HELP
, etc. and cause a test failure if those are not found when expected. A bonus point for failing for unexpectedWARN
s etc. as well.The text was updated successfully, but these errors were encountered: