about summary refs log tree commit diff
path: root/tests/ui/missing_fields_in_debug.stderr
blob: 51b5e7b314aceab172a18844df9b574c4b5690f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
error: manual `Debug` impl does not include all fields
  --> $DIR/missing_fields_in_debug.rs:13:1
   |
LL | / impl fmt::Debug for NamedStruct1Ignored {
LL | |
LL | |     // unused field: hidden
LL | |     fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
...  |
LL | |     }
LL | | }
   | |_^
   |
note: this field is unused
  --> $DIR/missing_fields_in_debug.rs:10:5
   |
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`

error: manual `Debug` impl does not include all fields
  --> $DIR/missing_fields_in_debug.rs:32:1
   |
LL | / impl fmt::Debug for NamedStructMultipleIgnored {
LL | |
LL | |     // unused fields: hidden, hidden2, hidden4
LL | |     fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
...  |
LL | |     }
LL | | }
   | |_^
   |
note: this field is unused
  --> $DIR/missing_fields_in_debug.rs:26:5
   |
LL |     hidden: u32,
   |     ^^^^^^^^^^^
note: this field is unused
  --> $DIR/missing_fields_in_debug.rs:27:5
   |
LL |     hidden2: String,
   |     ^^^^^^^^^^^^^^^
note: this field is unused
  --> $DIR/missing_fields_in_debug.rs:29:5
   |
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
  --> $DIR/missing_fields_in_debug.rs:94:1
   |
LL | / impl fmt::Debug for MultiExprDebugImpl {
LL | |
LL | |     fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
LL | |         let mut f = formatter.debug_struct("MultiExprDebugImpl");
...  |
LL | |     }
LL | | }
   | |_^
   |
note: this field is unused
  --> $DIR/missing_fields_in_debug.rs:90:5
   |
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