-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error codes check run and ensure it will not go unnoticed again #83451
Fix error codes check run and ensure it will not go unnoticed again #83451
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
src/tools/tidy/src/main.rs
Outdated
@@ -31,7 +31,7 @@ fn main() { | |||
|
|||
// Checks that only make sense for the compiler. | |||
errors::check(&compiler_path, &mut bad); | |||
error_codes_check::check(&src_path, &mut bad); | |||
error_codes_check::check(&[&src_path, &compiler_path], &mut bad); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, what error codes exist under src/? Should we actually split this into two separate passes, one to collect tests under src/test/ui/error-codes and the other for errors in the compiler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under src
are the tests. We check that all error codes are emitted at least in one test. I think it'd be hard to split the two parts considering that on one side we iterate over all emitted error codes and on the other we list all error codes. At the end, we check that all listed error codes have been tested once.
ping @Mark-Simulacrum |
OK, seems reasonable enough. Thanks. @bors r+ rollup=iffy |
📌 Commit 865d0c6 has been approved by |
…check, r=Mark-Simulacrum Fix error codes check run and ensure it will not go unnoticed again Fixes rust-lang#83268. The error codes explanations were not checked anymore. I fixed this issue and also added variables to ensure that this won't happen again (at least not silently).
☔ The latest upstream changes (presumably #82347) made this pull request unmergeable. Please resolve the merge conflicts. |
865d0c6
to
a41d41c
Compare
Fixed conflicts. @bors: r=Mark-Simulacrum |
📌 Commit a41d41c has been approved by |
…check, r=Mark-Simulacrum Fix error codes check run and ensure it will not go unnoticed again Fixes rust-lang#83268. The error codes explanations were not checked anymore. I fixed this issue and also added variables to ensure that this won't happen again (at least not silently).
☀️ Test successful - checks-actions |
Fixes #83268.
The error codes explanations were not checked anymore. I fixed this issue and also added variables to ensure that this won't happen again (at least not silently).