-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #[expect]
for most clippy lints
#9046
Fix #[expect]
for most clippy lints
#9046
Conversation
6c50845
to
4d41a97
Compare
tests/ui/boxed_local.rs
Outdated
@@ -202,3 +203,8 @@ mod issue4804 { | |||
fn foo(x: Box<u32>) {} | |||
} | |||
} | |||
|
|||
#[expect(clippy::boxed_local)] |
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.
Shouldn't this be on the argument?
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.
I wasn't sure, sometimes I forget that attributes also work on arguments ^^. I've updated the test.
Thank you. @bors r+ |
📌 Commit d11618e has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This PR fixes most
#[expect]
- lint interactions listed in rust-lang/rust#97660. My comment in the issue shows the current progress (Once this is merged). I plan to work onduplicate_mod
andmultiple_inherent_impl
and leave the rest for later. I feel like stabilizing the feature is more important than fixing the last few nits, which currently also don't work with#[allow]
.changelog: none
r? @Jarcho
cc: rust-lang/rust#97660