-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 some tests failing in --pass check
mode
#68290
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
These deny lints were made warnings specifically to test that we don't accidentally regress them to hard errors. We can't make them hard errors (I tried arguing for hard errors in RFC 1229, but now the RFC explicitly states that these are never to become hard errors) |
If we accidentally regress them the output will still change, the
will disappear. |
Sure, I get that, but that's still very subtle and only true for the first lint trigger. The subsequent ones will only change from |
0be7b0e
to
8172850
Compare
8172850
to
8fa8b81
Compare
Ok, if you think these tests must use warnings, I'll have to add |
@bors r+ rollup |
📌 Commit 8fa8b81 has been approved by |
Fix some tests failing in `--pass check` mode Warnings reported at codegen or linking time either have to be converted to errors (preferable), or the tests for them need to be marked with `// ignore-pass` (as a last resort). rust-lang@ecd5852 turned them from errors to warnings, but that shouldn't be necessary because it's still clear from the `.stderr` output that the errors are lints and not hard-coded.
Rollup of 8 pull requests Successful merges: - #67734 (Remove appendix from Apache license) - #67795 (Cleanup formatting code) - #68290 (Fix some tests failing in `--pass check` mode) - #68297 ( Filter and test predicates using `normalize_and_test_predicates` for const-prop) - #68302 (Fix #[track_caller] and function pointers) - #68339 (Add `riscv64gc-unknown-linux-gnu` into target list in build-manifest) - #68381 (Added minor clarification to specification of GlobalAlloc::realloc.) - #68397 (rustdoc: Correct order of `async` and `unsafe` in `async unsafe fn`s) Failed merges: r? @ghost
Warnings reported at codegen or linking time either have to be converted to errors (preferable), or the tests for them need to be marked with
// ignore-pass
(as a last resort).ecd5852 turned them from errors to warnings, but that shouldn't be necessary because it's still clear from the
.stderr
output that the errors are lints and not hard-coded.