Skip to content
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

Merged

Conversation

xFrednet
Copy link
Member

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 on duplicate_mod and multiple_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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 25, 2022
@xFrednet xFrednet force-pushed the rust-97660-expection-something-something branch from 6c50845 to 4d41a97 Compare June 25, 2022 12:37
@@ -202,3 +203,8 @@ mod issue4804 {
fn foo(x: Box<u32>) {}
}
}

#[expect(clippy::boxed_local)]
Copy link
Contributor

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?

Copy link
Member Author

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.

@Jarcho
Copy link
Contributor

Jarcho commented Jun 28, 2022

Thank you.

@bors r+

@bors
Copy link
Contributor

bors commented Jun 28, 2022

📌 Commit d11618e has been approved by Jarcho

@bors
Copy link
Contributor

bors commented Jun 28, 2022

⌛ Testing commit d11618e with merge 4995b4e...

@bors
Copy link
Contributor

bors commented Jun 28, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 4995b4e to master...

@bors bors merged commit 4995b4e into rust-lang:master Jun 28, 2022
@xFrednet xFrednet deleted the rust-97660-expection-something-something branch June 28, 2022 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants