diff options
| author | Philipp Gesang <phg@phi-gamma.net> | 2024-04-19 09:26:52 +0100 |
|---|---|---|
| committer | Philipp Gesang <phg@phi-gamma.net> | 2024-07-09 13:53:11 +0200 |
| commit | 296dcf09fb7e744c8f7b118e2e328dbc1fd6a7a5 (patch) | |
| tree | af64a2a1b031f945593f0b7c8a3c120c2b9282c0 /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | 87f8a5b374397673d03c8bee62926c6f21962d0b (diff) | |
| download | rust-296dcf09fb7e744c8f7b118e2e328dbc1fd6a7a5.tar.gz rust-296dcf09fb7e744c8f7b118e2e328dbc1fd6a7a5.zip | |
unnecessary_struct_initialization: extend to assignments moving all fields
This lint makes Clippy warn about situations where an owned struct is essentially recreated by moving all its fields into a new instance of the struct. Until now this lint only triggered for structs recreated from a base struct. NB: The new functionality too will cause false positives for the situation where a non-copy struct consisting of all copy members is touched again in subsequent code.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
