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

Moved map_err_ignore to restriction and updated help message #6416

Merged
merged 5 commits into from
Dec 4, 2020

Conversation

deg4uss3r
Copy link

This MR moves map_err_ignore lint from pedantic to the restriction category of lints and updates the help message to give the user an option to ignore the lint by naming the closure variable e.g. .map_err(|_ignored| ...


changelog: move map_err_ignore to restriction category

@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 3, 2020
@deg4uss3r
Copy link
Author

r? @yaahc

@rust-highfive rust-highfive assigned yaahc and unassigned flip1995 Dec 3, 2020
Copy link
Member

@yaahc yaahc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdyt of this help text?

clippy_lints/src/map_err_ignore.rs Outdated Show resolved Hide resolved
clippy_lints/src/map_err_ignore.rs Outdated Show resolved Hide resolved
clippy_lints/src/map_err_ignore.rs Outdated Show resolved Hide resolved
Ricky and others added 2 commits December 3, 2020 17:44
updated help message for the user

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
@deg4uss3r
Copy link
Author

Updated the test and everything looks good to me now as long as we're happy with the other changes in the MR :)

@yaahc
Copy link
Member

yaahc commented Dec 3, 2020

looks good to me, @ebroto wdyt?

Copy link
Member

@ebroto ebroto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

Could we add a test using the _foo identifier to check that we don't lint?

@deg4uss3r
Copy link
Author

@ebroto done!

@ebroto
Copy link
Member

ebroto commented Dec 4, 2020

@bors r+

Thanks! And thank for the review, @yaahc

@bors
Copy link
Collaborator

bors commented Dec 4, 2020

📌 Commit 5f821fb has been approved by ebroto

@bors
Copy link
Collaborator

bors commented Dec 4, 2020

⌛ Testing commit 5f821fb with merge 13c1a01...

@bors
Copy link
Collaborator

bors commented Dec 4, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: ebroto
Pushing 13c1a01 to master...

@bors bors merged commit 13c1a01 into rust-lang:master Dec 4, 2020
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.

None yet

6 participants