1
1
warning: some fields are not explicitly listed
2
- --> $DIR/reachable-patterns.rs:127 :9
2
+ --> $DIR/reachable-patterns.rs:129 :9
3
3
|
4
4
LL | VariantNonExhaustive::Bar { x, .. } => {}
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `y` not listed
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/reachable-patterns.rs:124 :12
8
+ --> $DIR/reachable-patterns.rs:126 :12
9
9
|
10
10
LL | #[warn(non_exhaustive_omitted_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
13
13
= note: the pattern is of type `VariantNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
14
14
15
15
warning: some fields are not explicitly listed
16
- --> $DIR/reachable-patterns.rs:132 :9
16
+ --> $DIR/reachable-patterns.rs:134 :9
17
17
|
18
18
LL | let FunctionalRecord { first_field, second_field, .. } = FunctionalRecord::default();
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `third_field` not listed
20
20
|
21
21
note: the lint level is defined here
22
- --> $DIR/reachable-patterns.rs:131 :12
22
+ --> $DIR/reachable-patterns.rs:133 :12
23
23
|
24
24
LL | #[warn(non_exhaustive_omitted_patterns)]
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
27
27
= note: the pattern is of type `FunctionalRecord` and the `non_exhaustive_omitted_patterns` attribute was found
28
28
29
29
warning: some fields are not explicitly listed
30
- --> $DIR/reachable-patterns.rs:140 :29
30
+ --> $DIR/reachable-patterns.rs:142 :29
31
31
|
32
32
LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
33
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `second_field` not listed
34
34
|
35
35
note: the lint level is defined here
36
- --> $DIR/reachable-patterns.rs:139 :12
36
+ --> $DIR/reachable-patterns.rs:141 :12
37
37
|
38
38
LL | #[warn(non_exhaustive_omitted_patterns)]
39
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
40
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
41
41
= note: the pattern is of type `NormalStruct` and the `non_exhaustive_omitted_patterns` attribute was found
42
42
43
43
warning: some fields are not explicitly listed
44
- --> $DIR/reachable-patterns.rs:140 :9
44
+ --> $DIR/reachable-patterns.rs:142 :9
45
45
|
46
46
LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `foo` not listed
@@ -50,63 +50,63 @@ LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = Nested
50
50
= note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
51
51
52
52
error: some variants are not matched explicitly
53
- --> $DIR/reachable-patterns.rs:54 :9
53
+ --> $DIR/reachable-patterns.rs:56 :9
54
54
|
55
55
LL | _ => {}
56
56
| ^ pattern `Struct { .. }` not covered
57
57
|
58
58
note: the lint level is defined here
59
- --> $DIR/reachable-patterns.rs:53 :16
59
+ --> $DIR/reachable-patterns.rs:55 :16
60
60
|
61
61
LL | #[deny(non_exhaustive_omitted_patterns)]
62
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63
63
= help: ensure that all variants are matched explicitly by adding the suggested match arms
64
64
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
65
65
66
66
error: some variants are not matched explicitly
67
- --> $DIR/reachable-patterns.rs:61 :9
67
+ --> $DIR/reachable-patterns.rs:63 :9
68
68
|
69
69
LL | _ => {}
70
70
| ^ pattern `Tuple(_)` not covered
71
71
|
72
72
note: the lint level is defined here
73
- --> $DIR/reachable-patterns.rs:60 :16
73
+ --> $DIR/reachable-patterns.rs:62 :16
74
74
|
75
75
LL | #[deny(non_exhaustive_omitted_patterns)]
76
76
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
77
= help: ensure that all variants are matched explicitly by adding the suggested match arms
78
78
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
79
79
80
80
error: some variants are not matched explicitly
81
- --> $DIR/reachable-patterns.rs:71 :9
81
+ --> $DIR/reachable-patterns.rs:73 :9
82
82
|
83
83
LL | _ => {}
84
84
| ^ pattern `Unit` not covered
85
85
|
86
86
note: the lint level is defined here
87
- --> $DIR/reachable-patterns.rs:70 :16
87
+ --> $DIR/reachable-patterns.rs:72 :16
88
88
|
89
89
LL | #[deny(non_exhaustive_omitted_patterns)]
90
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91
91
= help: ensure that all variants are matched explicitly by adding the suggested match arms
92
92
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
93
93
94
94
error: some variants are not matched explicitly
95
- --> $DIR/reachable-patterns.rs:88 :32
95
+ --> $DIR/reachable-patterns.rs:90 :32
96
96
|
97
97
LL | NestedNonExhaustive::A(_) => {}
98
98
| ^ patterns `Tuple(_)` and `Struct { .. }` not covered
99
99
|
100
100
note: the lint level is defined here
101
- --> $DIR/reachable-patterns.rs:85 :12
101
+ --> $DIR/reachable-patterns.rs:87 :12
102
102
|
103
103
LL | #[deny(non_exhaustive_omitted_patterns)]
104
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105
105
= help: ensure that all variants are matched explicitly by adding the suggested match arms
106
106
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
107
107
108
108
error: some variants are not matched explicitly
109
- --> $DIR/reachable-patterns.rs:90 :9
109
+ --> $DIR/reachable-patterns.rs:92 :9
110
110
|
111
111
LL | _ => {}
112
112
| ^ pattern `C` not covered
@@ -115,27 +115,27 @@ LL | _ => {}
115
115
= note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
116
116
117
117
error: some variants are not matched explicitly
118
- --> $DIR/reachable-patterns.rs:120 :9
118
+ --> $DIR/reachable-patterns.rs:122 :9
119
119
|
120
120
LL | _ => {}
121
121
| ^ patterns `HostUnreachable`, `NetworkUnreachable`, `NetworkDown` and 18 more not covered
122
122
|
123
123
note: the lint level is defined here
124
- --> $DIR/reachable-patterns.rs:97 :12
124
+ --> $DIR/reachable-patterns.rs:99 :12
125
125
|
126
126
LL | #[deny(non_exhaustive_omitted_patterns)]
127
127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128
128
= help: ensure that all variants are matched explicitly by adding the suggested match arms
129
129
= note: the matched value is of type `ErrorKind` and the `non_exhaustive_omitted_patterns` attribute was found
130
130
131
131
error: some variants are not matched explicitly
132
- --> $DIR/reachable-patterns.rs:157 :9
132
+ --> $DIR/reachable-patterns.rs:159 :9
133
133
|
134
134
LL | _ => {}
135
135
| ^ pattern `A(_)` not covered
136
136
|
137
137
note: the lint level is defined here
138
- --> $DIR/reachable-patterns.rs:155 :12
138
+ --> $DIR/reachable-patterns.rs:157 :12
139
139
|
140
140
LL | #[deny(non_exhaustive_omitted_patterns)]
141
141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments