-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Treat unstable lints as unknown #94274
Conversation
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
r? @lcnr |
lgtm, but not too familiar with this code, so r? @tmandry generally don't have strong opinions about how exactly this should behave |
37518af
to
06b9f06
Compare
This comment has been minimized.
This comment has been minimized.
06b9f06
to
a618097
Compare
This comment has been minimized.
This comment has been minimized.
b90ef17
to
d55d9d5
Compare
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.
LGTM after comments
src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr
Outdated
Show resolved
Hide resolved
src/test/ui/feature-gates/feature-gate-test_unstable_lint.stderr
Outdated
Show resolved
Hide resolved
☔ The latest upstream changes (presumably #87835) made this pull request unmergeable. Please resolve the merge conflicts. |
f71ad77
to
9847405
Compare
☔ The latest upstream changes (presumably #90076) made this pull request unmergeable. Please resolve the merge conflicts. |
This change causes unstable lints to be ignored if the `unknown_lints` lint is allowed. To achieve this, it also changes lints to apply as soon as they are processed. Previously, lints in the same set were processed as a batch and then all simultaneously applied. Implementation of rust-lang/compiler-team#469
This also affects the `non_exhaustive_omitted_patterns` and `must_not_suspend` lints as they are not stable. This also changes the diagnostic level to pull from `unknown_lints` instead of always being allow or deny.
9847405
to
fa10d90
Compare
This comment has been minimized.
This comment has been minimized.
@bors r+ rollup |
📌 Commit 1c31a95 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#93950 (Use modern formatting for format! macros) - rust-lang#94274 (Treat unstable lints as unknown) - rust-lang#94368 ([1/2] Implement macro meta-variable expressions) - rust-lang#94719 (Statically compile libstdc++ everywhere if asked) - rust-lang#94728 (Only emit pointer-like metadata for `Box<T, A>` when `A` is ZST) - rust-lang#94790 (enable portable-simd doctests in Miri) - rust-lang#94811 (Update browser-ui-test version) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This change causes unstable lints to be ignored if the
unknown_lints
lint is allowed. To achieve this, it also changes lints to apply as soon
as they are processed. Previously, lints in the same set were processed
as a batch and then all simultaneously applied.
Implementation of rust-lang/compiler-team#469