]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2008-non-exhaustive/omitted-patterns.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / rfc-2008-non-exhaustive / omitted-patterns.stderr
CommitLineData
c295e0f8
XL
1warning: some fields are not explicitly listed
2 --> $DIR/omitted-patterns.rs:102:9
3 |
4LL | VariantNonExhaustive::Bar { x, .. } => {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `y` not listed
6 |
7note: the lint level is defined here
8 --> $DIR/omitted-patterns.rs:99:12
9 |
10LL | #[warn(non_exhaustive_omitted_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
13 = note: the pattern is of type `VariantNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
14
15warning: some fields are not explicitly listed
16 --> $DIR/omitted-patterns.rs:107:9
17 |
18LL | let FunctionalRecord { first_field, second_field, .. } = FunctionalRecord::default();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `third_field` not listed
20 |
21note: the lint level is defined here
22 --> $DIR/omitted-patterns.rs:106:12
23 |
24LL | #[warn(non_exhaustive_omitted_patterns)]
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
27 = note: the pattern is of type `FunctionalRecord` and the `non_exhaustive_omitted_patterns` attribute was found
28
29warning: some fields are not explicitly listed
30 --> $DIR/omitted-patterns.rs:115:29
31 |
32LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `second_field` not listed
34 |
35note: the lint level is defined here
36 --> $DIR/omitted-patterns.rs:114:12
37 |
38LL | #[warn(non_exhaustive_omitted_patterns)]
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
41 = note: the pattern is of type `NormalStruct` and the `non_exhaustive_omitted_patterns` attribute was found
42
43warning: some fields are not explicitly listed
44 --> $DIR/omitted-patterns.rs:115:9
45 |
46LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `foo` not listed
48 |
49 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
50 = note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
51
ee023bcb
FG
52warning: some fields are not explicitly listed
53 --> $DIR/omitted-patterns.rs:173:9
54 |
55LL | let OnlyUnstableStruct { unstable, .. } = OnlyUnstableStruct::new();
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable2` not listed
57 |
58note: the lint level is defined here
59 --> $DIR/omitted-patterns.rs:172:12
60 |
61LL | #[warn(non_exhaustive_omitted_patterns)]
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
64 = note: the pattern is of type `OnlyUnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
65
66warning: some fields are not explicitly listed
67 --> $DIR/omitted-patterns.rs:181:9
68 |
69LL | let UnstableStruct { stable, stable2, .. } = UnstableStruct::default();
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable` not listed
71 |
72note: the lint level is defined here
73 --> $DIR/omitted-patterns.rs:180:12
74 |
75LL | #[warn(non_exhaustive_omitted_patterns)]
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
78 = note: the pattern is of type `UnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
79
c295e0f8
XL
80error: some variants are not matched explicitly
81 --> $DIR/omitted-patterns.rs:58:9
82 |
83LL | _ => {}
84 | ^ pattern `Struct { .. }` not covered
85 |
86note: the lint level is defined here
87 --> $DIR/omitted-patterns.rs:57:16
88 |
89LL | #[deny(non_exhaustive_omitted_patterns)]
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 = help: ensure that all variants are matched explicitly by adding the suggested match arms
92 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
93
94error: some variants are not matched explicitly
95 --> $DIR/omitted-patterns.rs:65:9
96 |
97LL | _ => {}
98 | ^ pattern `Tuple(_)` not covered
99 |
100note: the lint level is defined here
101 --> $DIR/omitted-patterns.rs:64:16
102 |
103LL | #[deny(non_exhaustive_omitted_patterns)]
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 = help: ensure that all variants are matched explicitly by adding the suggested match arms
106 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
107
108error: some variants are not matched explicitly
109 --> $DIR/omitted-patterns.rs:75:9
110 |
111LL | _ => {}
112 | ^ pattern `Unit` not covered
113 |
114note: the lint level is defined here
115 --> $DIR/omitted-patterns.rs:74:16
116 |
117LL | #[deny(non_exhaustive_omitted_patterns)]
118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 = help: ensure that all variants are matched explicitly by adding the suggested match arms
120 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
121
122error: some variants are not matched explicitly
123 --> $DIR/omitted-patterns.rs:92:32
124 |
125LL | NestedNonExhaustive::A(_) => {}
126 | ^ patterns `Tuple(_)` and `Struct { .. }` not covered
127 |
128note: the lint level is defined here
129 --> $DIR/omitted-patterns.rs:89:12
130 |
131LL | #[deny(non_exhaustive_omitted_patterns)]
132 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 = help: ensure that all variants are matched explicitly by adding the suggested match arms
134 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
135
136error: some variants are not matched explicitly
137 --> $DIR/omitted-patterns.rs:94:9
138 |
139LL | _ => {}
140 | ^ pattern `C` not covered
141 |
142 = help: ensure that all variants are matched explicitly by adding the suggested match arms
143 = note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
144
145error: some variants are not matched explicitly
146 --> $DIR/omitted-patterns.rs:132:9
147 |
148LL | _ => {}
149 | ^ pattern `A(_)` not covered
150 |
151note: the lint level is defined here
152 --> $DIR/omitted-patterns.rs:130:12
153 |
154LL | #[deny(non_exhaustive_omitted_patterns)]
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156 = help: ensure that all variants are matched explicitly by adding the suggested match arms
157 = note: the matched value is of type `NonExhaustiveSingleVariant` and the `non_exhaustive_omitted_patterns` attribute was found
158
159error: some variants are not matched explicitly
160 --> $DIR/omitted-patterns.rs:144:9
161 |
162LL | _ => {}
163 | ^ pattern `Unstable` not covered
164 |
165note: the lint level is defined here
166 --> $DIR/omitted-patterns.rs:143:16
167 |
168LL | #[deny(non_exhaustive_omitted_patterns)]
169 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
170 = help: ensure that all variants are matched explicitly by adding the suggested match arms
171 = note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
172
173error: some variants are not matched explicitly
ee023bcb 174 --> $DIR/omitted-patterns.rs:168:9
c295e0f8
XL
175 |
176LL | _ => {}
177 | ^ pattern `Unstable2` not covered
178 |
179note: the lint level is defined here
ee023bcb 180 --> $DIR/omitted-patterns.rs:165:12
c295e0f8
XL
181 |
182LL | #[deny(non_exhaustive_omitted_patterns)]
183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184 = help: ensure that all variants are matched explicitly by adding the suggested match arms
185 = note: the matched value is of type `OnlyUnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
186
ee023bcb 187error: aborting due to 8 previous errors; 6 warnings emitted
c295e0f8 188