-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
7b94826
to
e54c341
Compare
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, "_") |
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.
Why use with_macro_callsite
here?
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.
Ah, just saw the test update. Nvm.
@bors r+ Thanks! |
📌 Commit e54c341 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: Fix suggestion for deref expressions in [
redundant_pattern_matching
]closes: #7921