about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/graph.rs
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2024-04-19 09:26:52 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2024-07-09 13:53:11 +0200
commit296dcf09fb7e744c8f7b118e2e328dbc1fd6a7a5 (patch)
treeaf64a2a1b031f945593f0b7c8a3c120c2b9282c0 /compiler/rustc_mir_transform/src/coverage/graph.rs
parent87f8a5b374397673d03c8bee62926c6f21962d0b (diff)
downloadrust-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