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: use hir_with_context to produce correct snippets for assigning_clones #12783
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @blyxyas (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
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.
LGTM, thanks! ❤️
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
The
assigning_clones
lint is producing wrong output when the assignment is a macro call.Since Applicability level
Unspecified
will never be changed insidehir_with_applicability
, so it is safe here to replacehir_with_applicability
withhir_with_context
to generate snippets of the macro call instead of the expansion.fixes #12776
changelog: [
assigning_clones
]: usehir_with_context
to produce correct snippets