2023-06-02 09:41:57 +00:00
|
|
|
error: manual `Debug` impl does not include all fields
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:14:1
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | / impl fmt::Debug for NamedStruct1Ignored {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2023-06-02 09:41:57 +00:00
|
|
|
LL | | // unused field: hidden
|
|
|
|
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
... |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: this field is unused
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:11:5
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | hidden: u32,
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
= help: consider including all fields in this `Debug` impl
|
|
|
|
= help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields
|
|
|
|
= note: `-D clippy::missing-fields-in-debug` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_fields_in_debug)]`
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
error: manual `Debug` impl does not include all fields
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:33:1
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | / impl fmt::Debug for NamedStructMultipleIgnored {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2023-06-02 09:41:57 +00:00
|
|
|
LL | | // unused fields: hidden, hidden2, hidden4
|
|
|
|
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
... |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: this field is unused
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:27:5
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | hidden: u32,
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: this field is unused
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:28:5
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | hidden2: String,
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
note: this field is unused
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:30:5
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | hidden4: ((((u8), u16), u32), u64),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: consider including all fields in this `Debug` impl
|
|
|
|
= help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields
|
|
|
|
|
|
|
|
error: manual `Debug` impl does not include all fields
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:95:1
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | / impl fmt::Debug for MultiExprDebugImpl {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2023-06-02 09:41:57 +00:00
|
|
|
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
LL | | let mut f = formatter.debug_struct("MultiExprDebugImpl");
|
2023-08-24 19:32:12 +00:00
|
|
|
... |
|
2023-06-02 09:41:57 +00:00
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: this field is unused
|
2024-05-19 15:08:36 +00:00
|
|
|
--> tests/ui/missing_fields_in_debug.rs:91:5
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | b: String,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= help: consider including all fields in this `Debug` impl
|
|
|
|
= help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|