-
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
Add unnecessary_literal_unwrap
lint
#10358
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @llogiq (or someone else) soon. Please see the contribution instructions for more information. |
The |
@rustbot author |
As well as many others. I count differences in 21 output files when testing locally. |
Only the documentation is left. But before I do that, I would like to know 2 things:
|
☔ The latest upstream changes (presumably #10528) made this pull request unmergeable. Please resolve the merge conflicts. |
@pksunkara do you intend to revisit this at some point? |
Yup, I can take a look on Monday. |
I would appreciate if I can get some answers for the questions I asked earlier, #10358 (comment) |
|
I have addressed the review comments. @rustbot reviewer |
@pksunkara The comment to remove the |
There are still merge conflicts, and I don't have time to review right now, sorry. Perhaps I'll find a few minutes tomorrow. |
They are very minor ones because of this PR touching a lot of tests and I will fix them once the code is reviewed. |
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.
Looks good, I only have a small nit regarding docs.
Also I'm not completely sure about the name: So far we have 23 needless-*
and 18 unnecessary-*
lints. I like the former more for both brevity and being easier to write.
Addressed the conflicts and review comment. |
☔ The latest upstream changes (presumably #10921) made this pull request unmergeable. Please resolve the merge conflicts. |
So you intend to keep the name longer. Ah, well, you've done enough rebases as is. Let's roll with it. Thanks for seeing this PR through. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Add lint for more unnecessary unwraps and suggest fixes for them.
Fixes #10352
.stderr
file)cargo test
passes locallycargo dev update_lints
cargo dev fmt
r? @llogiq
changelog: New lint [
unnecessary_literal_unwrap
]#10358