]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing-doc.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / missing-doc.stderr
1 error: missing documentation for a type alias
2   --> $DIR/missing-doc.rs:32:1
3    |
4 LL | type Typedef = String;
5    | ^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
8
9 error: missing documentation for a type alias
10   --> $DIR/missing-doc.rs:33:1
11    |
12 LL | pub type PubTypedef = String;
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: missing documentation for a struct
16   --> $DIR/missing-doc.rs:35:1
17    |
18 LL | / struct Foo {
19 LL | |     a: isize,
20 LL | |     b: isize,
21 LL | | }
22    | |_^
23
24 error: missing documentation for a struct field
25   --> $DIR/missing-doc.rs:36:5
26    |
27 LL |     a: isize,
28    |     ^^^^^^^^
29
30 error: missing documentation for a struct field
31   --> $DIR/missing-doc.rs:37:5
32    |
33 LL |     b: isize,
34    |     ^^^^^^^^
35
36 error: missing documentation for a struct
37   --> $DIR/missing-doc.rs:40:1
38    |
39 LL | / pub struct PubFoo {
40 LL | |     pub a: isize,
41 LL | |     b: isize,
42 LL | | }
43    | |_^
44
45 error: missing documentation for a struct field
46   --> $DIR/missing-doc.rs:41:5
47    |
48 LL |     pub a: isize,
49    |     ^^^^^^^^^^^^
50
51 error: missing documentation for a struct field
52   --> $DIR/missing-doc.rs:42:5
53    |
54 LL |     b: isize,
55    |     ^^^^^^^^
56
57 error: missing documentation for a module
58   --> $DIR/missing-doc.rs:51:1
59    |
60 LL | mod module_no_dox {}
61    | ^^^^^^^^^^^^^^^^^^^^
62
63 error: missing documentation for a module
64   --> $DIR/missing-doc.rs:52:1
65    |
66 LL | pub mod pub_module_no_dox {}
67    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
69 error: missing documentation for a function
70   --> $DIR/missing-doc.rs:56:1
71    |
72 LL | pub fn foo2() {}
73    | ^^^^^^^^^^^^^^^^
74
75 error: missing documentation for a function
76   --> $DIR/missing-doc.rs:57:1
77    |
78 LL | fn foo3() {}
79    | ^^^^^^^^^^^^
80
81 error: missing documentation for a trait
82   --> $DIR/missing-doc.rs:75:1
83    |
84 LL | / pub trait C {
85 LL | |     fn foo(&self);
86 LL | |     fn foo_with_impl(&self) {}
87 LL | | }
88    | |_^
89
90 error: missing documentation for a trait method
91   --> $DIR/missing-doc.rs:76:5
92    |
93 LL |     fn foo(&self);
94    |     ^^^^^^^^^^^^^^
95
96 error: missing documentation for a trait method
97   --> $DIR/missing-doc.rs:77:5
98    |
99 LL |     fn foo_with_impl(&self) {}
100    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
101
102 error: missing documentation for an associated type
103   --> $DIR/missing-doc.rs:87:5
104    |
105 LL |     type AssociatedType;
106    |     ^^^^^^^^^^^^^^^^^^^^
107
108 error: missing documentation for an associated type
109   --> $DIR/missing-doc.rs:88:5
110    |
111 LL |     type AssociatedTypeDef = Self;
112    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
114 error: missing documentation for a method
115   --> $DIR/missing-doc.rs:99:5
116    |
117 LL |     pub fn foo() {}
118    |     ^^^^^^^^^^^^^^^
119
120 error: missing documentation for a method
121   --> $DIR/missing-doc.rs:100:5
122    |
123 LL |     fn bar() {}
124    |     ^^^^^^^^^^^
125
126 error: missing documentation for a method
127   --> $DIR/missing-doc.rs:104:5
128    |
129 LL |     pub fn foo() {}
130    |     ^^^^^^^^^^^^^^^
131
132 error: missing documentation for a method
133   --> $DIR/missing-doc.rs:107:5
134    |
135 LL |     fn foo2() {}
136    |     ^^^^^^^^^^^^
137
138 error: missing documentation for an enum
139   --> $DIR/missing-doc.rs:134:1
140    |
141 LL | / enum Baz {
142 LL | |     BazA { a: isize, b: isize },
143 LL | |     BarB,
144 LL | | }
145    | |_^
146
147 error: missing documentation for a variant
148   --> $DIR/missing-doc.rs:135:5
149    |
150 LL |     BazA { a: isize, b: isize },
151    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
152
153 error: missing documentation for a struct field
154   --> $DIR/missing-doc.rs:135:12
155    |
156 LL |     BazA { a: isize, b: isize },
157    |            ^^^^^^^^
158
159 error: missing documentation for a struct field
160   --> $DIR/missing-doc.rs:135:22
161    |
162 LL |     BazA { a: isize, b: isize },
163    |                      ^^^^^^^^
164
165 error: missing documentation for a variant
166   --> $DIR/missing-doc.rs:136:5
167    |
168 LL |     BarB,
169    |     ^^^^
170
171 error: missing documentation for an enum
172   --> $DIR/missing-doc.rs:139:1
173    |
174 LL | / pub enum PubBaz {
175 LL | |     PubBazA { a: isize },
176 LL | | }
177    | |_^
178
179 error: missing documentation for a variant
180   --> $DIR/missing-doc.rs:140:5
181    |
182 LL |     PubBazA { a: isize },
183    |     ^^^^^^^^^^^^^^^^^^^^
184
185 error: missing documentation for a struct field
186   --> $DIR/missing-doc.rs:140:15
187    |
188 LL |     PubBazA { a: isize },
189    |               ^^^^^^^^
190
191 error: missing documentation for a constant
192   --> $DIR/missing-doc.rs:160:1
193    |
194 LL | const FOO: u32 = 0;
195    | ^^^^^^^^^^^^^^^^^^^
196
197 error: missing documentation for a constant
198   --> $DIR/missing-doc.rs:167:1
199    |
200 LL | pub const FOO4: u32 = 0;
201    | ^^^^^^^^^^^^^^^^^^^^^^^^
202
203 error: missing documentation for a static
204   --> $DIR/missing-doc.rs:169:1
205    |
206 LL | static BAR: u32 = 0;
207    | ^^^^^^^^^^^^^^^^^^^^
208
209 error: missing documentation for a static
210   --> $DIR/missing-doc.rs:176:1
211    |
212 LL | pub static BAR4: u32 = 0;
213    | ^^^^^^^^^^^^^^^^^^^^^^^^^
214
215 error: missing documentation for a module
216   --> $DIR/missing-doc.rs:178:1
217    |
218 LL | / mod internal_impl {
219 LL | |     /// dox
220 LL | |     pub fn documented() {}
221 LL | |     pub fn undocumented1() {}
222 ...  |
223 LL | |     }
224 LL | | }
225    | |_^
226
227 error: missing documentation for a function
228   --> $DIR/missing-doc.rs:181:5
229    |
230 LL |     pub fn undocumented1() {}
231    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
232
233 error: missing documentation for a function
234   --> $DIR/missing-doc.rs:182:5
235    |
236 LL |     pub fn undocumented2() {}
237    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
238
239 error: missing documentation for a function
240   --> $DIR/missing-doc.rs:183:5
241    |
242 LL |     fn undocumented3() {}
243    |     ^^^^^^^^^^^^^^^^^^^^^
244
245 error: missing documentation for a function
246   --> $DIR/missing-doc.rs:188:9
247    |
248 LL |         pub fn also_undocumented1() {}
249    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
250
251 error: missing documentation for a function
252   --> $DIR/missing-doc.rs:189:9
253    |
254 LL |         fn also_undocumented2() {}
255    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
256
257 error: aborting due to 39 previous errors
258