diff options
| author | bors <bors@rust-lang.org> | 2020-11-04 22:21:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-04 22:21:44 +0000 |
| commit | 5b52474ae6a63a69e40f4f163ddfbd3548ddac7d (patch) | |
| tree | c250b39469e42342fafc4897a6d1c1c248bc8291 /compiler/rustc_mir/src/transform/coverage/query.rs | |
| parent | 62c0d29f17a8b55003580d262882e3ce68ef46e8 (diff) | |
| parent | 7b203f3da6b590059c12bb01d0873b31be347928 (diff) | |
| download | rust-5b52474ae6a63a69e40f4f163ddfbd3548ddac7d.tar.gz rust-5b52474ae6a63a69e40f4f163ddfbd3548ddac7d.zip | |
Auto merge of #5911 - hegza:issue-568, r=ebroto
Add lint for 'field_reassign_with_default` #568 changelog: Add lint for field_reassign_with_default that checks if mutable object + field modification is used to edit a binding initialized with Default::default() instead of struct constructor. Fixes #568 Notes: - Checks for reassignment of one or more fields of a binding initialized with Default::default(). - Implemented using EarlyLintPass, might be future proofed better with LateLintPass. - Does not trigger if Default::default() is used via another type implementing Default. - This is a re-open of [PR#4761](https://github.com/rust-lang/rust-clippy/pull/4761), but I couldn't figure out how to re-open that one so here's a new one with the requested changes :S
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
