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 suggestion for deref expressions in redundant_pattern_matching #7949

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

Serial-ATA
Copy link
Contributor

changelog: Fix suggestion for deref expressions in [redundant_pattern_matching]

closes: #7921

@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 Nov 8, 2021
Applicability::MaybeIncorrect
} else {
Applicability::MachineApplicable
};
let sugg = snippet_with_applicability(cx, op_span, "_", &mut app);

let sugg = Sugg::hir_with_macro_callsite(cx, result_expr, "_")
Copy link
Member

Choose a reason for hiding this comment

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

Why use with_macro_callsite here?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, just saw the test update. Nvm.

@flip1995
Copy link
Member

flip1995 commented Nov 9, 2021

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Nov 9, 2021

📌 Commit e54c341 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Nov 9, 2021

⌛ Testing commit e54c341 with merge c94d62b...

@bors
Copy link
Contributor

bors commented Nov 9, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing c94d62b to master...

@bors bors merged commit c94d62b into rust-lang:master Nov 9, 2021
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.

cargo clippy --fix fails fixing redundant_pattern_matching
4 participants