-
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
Support tool lints with the #[expect]
attribute (RFC 2383)
#95542
Conversation
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
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.
This LGTM. Though I'm not familiar with the query system and if just adding a new key for Option<Symbol>
is ok, so I leave that to Wesley to decide.
Hey @wesleywiser, could you take a look at this PR? 🙃 |
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.
Thanks for the ping @xFrednet! This looks really good and I'm glad to see we were able to resolve the ICE while keeping that check in place. I left one small suggestion with the tests added and then we can merge.
src/test/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.rs
Outdated
Show resolved
Hide resolved
41208ff
to
c26742d
Compare
Thank you for the review! I've rebased on master as well. I've only changed the mentioned comment and updated the line numbers in the |
Awesome! @bors r+ |
📌 Commit c26742d has been approved by |
…esleywiser Support tool lints with the `#[expect]` attribute (RFC 2383) This PR fixes the ICE rust-lang#94953 by making the assert for converted expectation IDs conditional. Additionally, it moves the lint expectation check into a separate query to support rustdoc and other tools. On the way, I've also added some tests to ensure that the attribute works for Clippy and rustdoc lints. The number of changes comes from the long test file. This may look like a monster PR, this may smell like a monster PR and this may be a monster PR, but it's a harmless monster. 🦕 --- Closes: rust-lang#94953 cc: rust-lang#85549 r? `@wesleywiser` cc: `@rust-lang/rustdoc`
…esleywiser Support tool lints with the `#[expect]` attribute (RFC 2383) This PR fixes the ICE rust-lang#94953 by making the assert for converted expectation IDs conditional. Additionally, it moves the lint expectation check into a separate query to support rustdoc and other tools. On the way, I've also added some tests to ensure that the attribute works for Clippy and rustdoc lints. The number of changes comes from the long test file. This may look like a monster PR, this may smell like a monster PR and this may be a monster PR, but it's a harmless monster. 🦕 --- Closes: rust-lang#94953 cc: rust-lang#85549 r? ``@wesleywiser`` cc: ``@rust-lang/rustdoc``
…esleywiser Support tool lints with the `#[expect]` attribute (RFC 2383) This PR fixes the ICE rust-lang#94953 by making the assert for converted expectation IDs conditional. Additionally, it moves the lint expectation check into a separate query to support rustdoc and other tools. On the way, I've also added some tests to ensure that the attribute works for Clippy and rustdoc lints. The number of changes comes from the long test file. This may look like a monster PR, this may smell like a monster PR and this may be a monster PR, but it's a harmless monster. 🦕 --- Closes: rust-lang#94953 cc: rust-lang#85549 r? ```@wesleywiser``` cc: ```@rust-lang/rustdoc```
⌛ Testing commit c26742d with merge 3076beb64cc568bead8924a7d63edf516ce1a662... |
Failed in #96813:
@bors r- |
✌️ @xFrednet can now approve this pull request |
Thanks, I thought about using r=wesleywiser before, but was unsure if that would be okay 😅 @bors r=wesleywiser |
📌 Commit 332a9fa200f6e36fb8d5fbaf8e9fe0433562beea has been approved by |
⌛ Testing commit 332a9fa200f6e36fb8d5fbaf8e9fe0433562beea with merge 7e33efee9b7aba31953af392753e6f8bb682bd82... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
@bors r- |
Co-authored-by: Philipp Krones <[email protected]>
332a9fa
to
9516a40
Compare
Let's hope that third times is the charm. @bors r=wesleywiser rollup=iffy |
📌 Commit 9516a40 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a571179): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
…leywiser Support tool lints with the `#[expect]` attribute (RFC 2383) This PR fixes the ICE rust-lang#94953 by making the assert for converted expectation IDs conditional. Additionally, it moves the lint expectation check into a separate query to support rustdoc and other tools. On the way, I've also added some tests to ensure that the attribute works for Clippy and rustdoc lints. The number of changes comes from the long test file. This may look like a monster PR, this may smell like a monster PR and this may be a monster PR, but it's a harmless monster. 🦕 --- Closes: rust-lang#94953 cc: rust-lang#85549 r? `@wesleywiser` cc: `@rust-lang/rustdoc`
This PR fixes the ICE #94953 by making the assert for converted expectation IDs conditional.
Additionally, it moves the lint expectation check into a separate query to support rustdoc and other tools. On the way, I've also added some tests to ensure that the attribute works for Clippy and rustdoc lints.
The number of changes comes from the long test file. This may look like a monster PR, this may smell like a monster PR and this may be a monster PR, but it's a harmless monster. 🦕
Closes: #94953
cc: #85549
r? @wesleywiser
cc: @rust-lang/rustdoc