about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-03 21:43:02 +0000
committerbors <bors@rust-lang.org>2023-05-03 21:43:02 +0000
commitf9c1d155b4c9cad224fe96aad486993dc123c9b6 (patch)
treeec469febbbe4261a6bcd69f9f92195cea1cb5113 /compiler/rustc_mir_transform/src/coverage/debug.rs
parentc2e0d43485eff8a73c61d9118cd8ed5a1a292007 (diff)
parent48ae5a071bc32e5fb69669248ab103ecba7509ab (diff)
downloadrust-f9c1d155b4c9cad224fe96aad486993dc123c9b6.tar.gz
rust-f9c1d155b4c9cad224fe96aad486993dc123c9b6.zip
Auto merge of #10716 - Icxolu:unitstruct_default_construction, r=Manishearth
Fixes #10609: Adds lint to detect construction of unit struct using `default`

Using `default` to construct a unit struct increases code complexity and adds a function call. This can be avoided by simply removing the call to `default` and simply construct by name.

changelog: [`default_constructed_unit_structs`]: detects construction of unit structs using `default`

fixes #10609
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions