diff options
| author | bors <bors@rust-lang.org> | 2023-05-03 21:43:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-03 21:43:02 +0000 |
| commit | f9c1d155b4c9cad224fe96aad486993dc123c9b6 (patch) | |
| tree | ec469febbbe4261a6bcd69f9f92195cea1cb5113 /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | c2e0d43485eff8a73c61d9118cd8ed5a1a292007 (diff) | |
| parent | 48ae5a071bc32e5fb69669248ab103ecba7509ab (diff) | |
| download | rust-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 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
