11warning: some fields are not explicitly listed
2- --> $DIR/reachable-patterns.rs:127 :9
2+ --> $DIR/reachable-patterns.rs:129 :9
33 |
44LL | VariantNonExhaustive::Bar { x, .. } => {}
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `y` not listed
66 |
77note: the lint level is defined here
8- --> $DIR/reachable-patterns.rs:124 :12
8+ --> $DIR/reachable-patterns.rs:126 :12
99 |
1010LL | #[warn(non_exhaustive_omitted_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
1313 = note: the pattern is of type `VariantNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
1414
1515warning: some fields are not explicitly listed
16- --> $DIR/reachable-patterns.rs:132 :9
16+ --> $DIR/reachable-patterns.rs:134 :9
1717 |
1818LL | let FunctionalRecord { first_field, second_field, .. } = FunctionalRecord::default();
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `third_field` not listed
2020 |
2121note: the lint level is defined here
22- --> $DIR/reachable-patterns.rs:131 :12
22+ --> $DIR/reachable-patterns.rs:133 :12
2323 |
2424LL | #[warn(non_exhaustive_omitted_patterns)]
2525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
2727 = note: the pattern is of type `FunctionalRecord` and the `non_exhaustive_omitted_patterns` attribute was found
2828
2929warning: some fields are not explicitly listed
30- --> $DIR/reachable-patterns.rs:140 :29
30+ --> $DIR/reachable-patterns.rs:142 :29
3131 |
3232LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
3333 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `second_field` not listed
3434 |
3535note: the lint level is defined here
36- --> $DIR/reachable-patterns.rs:139 :12
36+ --> $DIR/reachable-patterns.rs:141 :12
3737 |
3838LL | #[warn(non_exhaustive_omitted_patterns)]
3939 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4040 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
4141 = note: the pattern is of type `NormalStruct` and the `non_exhaustive_omitted_patterns` attribute was found
4242
4343warning: some fields are not explicitly listed
44- --> $DIR/reachable-patterns.rs:140 :9
44+ --> $DIR/reachable-patterns.rs:142 :9
4545 |
4646LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
4747 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `foo` not listed
@@ -50,63 +50,63 @@ LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = Nested
5050 = note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
5151
5252error: some variants are not matched explicitly
53- --> $DIR/reachable-patterns.rs:54 :9
53+ --> $DIR/reachable-patterns.rs:56 :9
5454 |
5555LL | _ => {}
5656 | ^ pattern `Struct { .. }` not covered
5757 |
5858note: the lint level is defined here
59- --> $DIR/reachable-patterns.rs:53 :16
59+ --> $DIR/reachable-patterns.rs:55 :16
6060 |
6161LL | #[deny(non_exhaustive_omitted_patterns)]
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6363 = help: ensure that all variants are matched explicitly by adding the suggested match arms
6464 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
6565
6666error: some variants are not matched explicitly
67- --> $DIR/reachable-patterns.rs:61 :9
67+ --> $DIR/reachable-patterns.rs:63 :9
6868 |
6969LL | _ => {}
7070 | ^ pattern `Tuple(_)` not covered
7171 |
7272note: the lint level is defined here
73- --> $DIR/reachable-patterns.rs:60 :16
73+ --> $DIR/reachable-patterns.rs:62 :16
7474 |
7575LL | #[deny(non_exhaustive_omitted_patterns)]
7676 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7777 = help: ensure that all variants are matched explicitly by adding the suggested match arms
7878 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
7979
8080error: some variants are not matched explicitly
81- --> $DIR/reachable-patterns.rs:71 :9
81+ --> $DIR/reachable-patterns.rs:73 :9
8282 |
8383LL | _ => {}
8484 | ^ pattern `Unit` not covered
8585 |
8686note: the lint level is defined here
87- --> $DIR/reachable-patterns.rs:70 :16
87+ --> $DIR/reachable-patterns.rs:72 :16
8888 |
8989LL | #[deny(non_exhaustive_omitted_patterns)]
9090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9191 = help: ensure that all variants are matched explicitly by adding the suggested match arms
9292 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
9393
9494error: some variants are not matched explicitly
95- --> $DIR/reachable-patterns.rs:88 :32
95+ --> $DIR/reachable-patterns.rs:90 :32
9696 |
9797LL | NestedNonExhaustive::A(_) => {}
9898 | ^ patterns `Tuple(_)` and `Struct { .. }` not covered
9999 |
100100note: the lint level is defined here
101- --> $DIR/reachable-patterns.rs:85 :12
101+ --> $DIR/reachable-patterns.rs:87 :12
102102 |
103103LL | #[deny(non_exhaustive_omitted_patterns)]
104104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105105 = help: ensure that all variants are matched explicitly by adding the suggested match arms
106106 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
107107
108108error: some variants are not matched explicitly
109- --> $DIR/reachable-patterns.rs:90 :9
109+ --> $DIR/reachable-patterns.rs:92 :9
110110 |
111111LL | _ => {}
112112 | ^ pattern `C` not covered
@@ -115,27 +115,27 @@ LL | _ => {}
115115 = note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
116116
117117error: some variants are not matched explicitly
118- --> $DIR/reachable-patterns.rs:120 :9
118+ --> $DIR/reachable-patterns.rs:122 :9
119119 |
120120LL | _ => {}
121121 | ^ patterns `HostUnreachable`, `NetworkUnreachable`, `NetworkDown` and 18 more not covered
122122 |
123123note: the lint level is defined here
124- --> $DIR/reachable-patterns.rs:97 :12
124+ --> $DIR/reachable-patterns.rs:99 :12
125125 |
126126LL | #[deny(non_exhaustive_omitted_patterns)]
127127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128128 = help: ensure that all variants are matched explicitly by adding the suggested match arms
129129 = note: the matched value is of type `ErrorKind` and the `non_exhaustive_omitted_patterns` attribute was found
130130
131131error: some variants are not matched explicitly
132- --> $DIR/reachable-patterns.rs:157 :9
132+ --> $DIR/reachable-patterns.rs:159 :9
133133 |
134134LL | _ => {}
135135 | ^ pattern `A(_)` not covered
136136 |
137137note: the lint level is defined here
138- --> $DIR/reachable-patterns.rs:155 :12
138+ --> $DIR/reachable-patterns.rs:157 :12
139139 |
140140LL | #[deny(non_exhaustive_omitted_patterns)]
141141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments