diff options
| author | bors <bors@rust-lang.org> | 2023-05-31 22:07:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-31 22:07:58 +0000 |
| commit | 652b4c720dd613270f4755c39fa77d4d686187be (patch) | |
| tree | 90a4f10494e289dd51f9bf3277ed6ef6b81aabbf /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | 594a2cba93d8c78f522bdb15de6aeebeebf50a8a (diff) | |
| parent | a859b0e6dfae12169d6a239e2a63aef8227e1dce (diff) | |
| download | rust-652b4c720dd613270f4755c39fa77d4d686187be.tar.gz rust-652b4c720dd613270f4755c39fa77d4d686187be.zip | |
Auto merge of #10616 - y21:missing_field_in_debug, r=Alexendoo
new lint: `missing_fields_in_debug` Fixes #10429 This PR adds a new lint that looks for manual `Debug` implementations that do not "use" all of the fields. This often happens when adding a new field to a struct. It also acts as a style lint in case leaving out a field was intentional. In that case, it's preferred to use [`DebugStruct::finish_non_exhaustive`](https://doc.rust-lang.org/stable/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive), which indicates that there are more fields that were explicitly not shown. ``` changelog: [`missing_fields_in_debug`]: missing fields in manual `Debug` implementation ```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions
