]> git.lizzy.rs Git - rust.git/commit
Auto merge of #7160 - flip1995:field_reassign_macros, r=xFrednet,camsteffen
authorbors <bors@rust-lang.org>
Fri, 11 Jun 2021 15:58:58 +0000 (15:58 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Jun 2021 15:58:58 +0000 (15:58 +0000)
commitf1f5ccd63a93b04d4d8dcb15b5a5de58a0d8c109
tree532253ef293deeba0723c49103d924bff178e6a8
parentf7d09b45e9dbb32c5524d5f3b0838401c848bbf2
parent0854f0caee1d6d16e57eb1d3f5abf539b3bee3f0
Auto merge of #7160 - flip1995:field_reassign_macros, r=xFrednet,camsteffen

Don't trigger `field_reassign_with_default` in macros

Fixes #7155

Producing a good suggestion for this lint is already hard when no macros
are involved. With macros the lint message and the suggestion are just
confusing. Since both, producing a good suggestion and figuring out if
this pattern can be re-written inside a macro is nearly impossible, just
bail out.

changelog: [`field_reassign_with_default`] No longer triggers in macros

---

No that our reviewing queue is under control, I want to start hacking on Clippy myself again. Starting with an easy issue to get back in :)