1 error: missing documentation for a type alias
2 --> $DIR/lint-attr-everywhere-late.rs:35:1
4 LL | pub type MissingDocType = i32;
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/lint-attr-everywhere-late.rs:34:8
10 LL | #[deny(missing_docs)]
13 error: missing documentation for a struct
14 --> $DIR/lint-attr-everywhere-late.rs:43:1
16 LL | pub struct ItemOuter;
17 | ^^^^^^^^^^^^^^^^^^^^
19 note: the lint level is defined here
20 --> $DIR/lint-attr-everywhere-late.rs:42:8
22 LL | #[deny(missing_docs)]
25 error: missing documentation for a module
26 --> $DIR/lint-attr-everywhere-late.rs:45:1
28 LL | pub mod module_inner {
29 | ^^^^^^^^^^^^^^^^^^^^
31 note: the lint level is defined here
32 --> $DIR/lint-attr-everywhere-late.rs:46:13
34 LL | #![deny(missing_docs)]
37 error: missing documentation for a function
38 --> $DIR/lint-attr-everywhere-late.rs:47:5
40 LL | pub fn missing_inner() {}
41 | ^^^^^^^^^^^^^^^^^^^^^^
43 error: missing documentation for an associated function
44 --> $DIR/lint-attr-everywhere-late.rs:54:5
46 LL | pub fn inherent_denied_from_inner() {}
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 note: the lint level is defined here
50 --> $DIR/lint-attr-everywhere-late.rs:52:13
52 LL | #![deny(missing_docs)]
55 error: missing documentation for an associated function
56 --> $DIR/lint-attr-everywhere-late.rs:59:5
58 LL | pub fn inherent_fn() {}
59 | ^^^^^^^^^^^^^^^^^^^^
61 note: the lint level is defined here
62 --> $DIR/lint-attr-everywhere-late.rs:58:12
64 LL | #[deny(missing_docs)]
67 error: missing documentation for an associated constant
68 --> $DIR/lint-attr-everywhere-late.rs:62:5
70 LL | pub const INHERENT_CONST: i32 = 1;
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 note: the lint level is defined here
74 --> $DIR/lint-attr-everywhere-late.rs:61:12
76 LL | #[deny(missing_docs)]
79 error: missing documentation for a trait
80 --> $DIR/lint-attr-everywhere-late.rs:65:1
82 LL | pub trait TraitInner {
83 | ^^^^^^^^^^^^^^^^^^^^
85 note: the lint level is defined here
86 --> $DIR/lint-attr-everywhere-late.rs:66:13
88 LL | #![deny(missing_docs)]
91 error: missing documentation for a trait
92 --> $DIR/lint-attr-everywhere-late.rs:69:1
94 LL | pub trait AssociatedTraitInner {
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 note: the lint level is defined here
98 --> $DIR/lint-attr-everywhere-late.rs:70:13
100 LL | #![deny(missing_docs)]
103 error: missing documentation for an associated function
104 --> $DIR/lint-attr-everywhere-late.rs:72:5
106 LL | fn denied_from_inner() {}
107 | ^^^^^^^^^^^^^^^^^^^^^^
109 error: missing documentation for an associated function
110 --> $DIR/lint-attr-everywhere-late.rs:79:5
112 LL | fn assoc_fn() {}
115 note: the lint level is defined here
116 --> $DIR/lint-attr-everywhere-late.rs:78:12
118 LL | #[deny(missing_docs)]
121 error: missing documentation for an associated constant
122 --> $DIR/lint-attr-everywhere-late.rs:82:5
124 LL | const ASSOC_CONST: u8 = 1;
125 | ^^^^^^^^^^^^^^^^^^^^^
127 note: the lint level is defined here
128 --> $DIR/lint-attr-everywhere-late.rs:81:12
130 LL | #[deny(missing_docs)]
133 error: missing documentation for an associated type
134 --> $DIR/lint-attr-everywhere-late.rs:85:5
139 note: the lint level is defined here
140 --> $DIR/lint-attr-everywhere-late.rs:84:12
142 LL | #[deny(missing_docs)]
145 error: missing documentation for a variant
146 --> $DIR/lint-attr-everywhere-late.rs:112:5
151 note: the lint level is defined here
152 --> $DIR/lint-attr-everywhere-late.rs:111:12
154 LL | #[deny(missing_docs)]
157 error: `clashing1` redeclared with a different signature
158 --> $DIR/lint-attr-everywhere-late.rs:123:5
161 | --------------- `clashing1` previously declared here
163 LL | fn clashing1(_: i32);
164 | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
166 = note: expected `unsafe extern "C" fn()`
167 found `unsafe extern "C" fn(i32)`
168 note: the lint level is defined here
169 --> $DIR/lint-attr-everywhere-late.rs:122:13
171 LL | #![deny(clashing_extern_declarations)]
172 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174 error: `clashing2` redeclared with a different signature
175 --> $DIR/lint-attr-everywhere-late.rs:128:5
178 | --------------- `clashing2` previously declared here
180 LL | fn clashing2(_: i32);
181 | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
183 = note: expected `unsafe extern "C" fn()`
184 found `unsafe extern "C" fn(i32)`
185 note: the lint level is defined here
186 --> $DIR/lint-attr-everywhere-late.rs:127:12
188 LL | #[deny(clashing_extern_declarations)]
189 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
192 --> $DIR/lint-attr-everywhere-late.rs:93:38
194 LL | fn denied_from_inner(_x: Box<dyn Drop>) {}
197 note: the lint level is defined here
198 --> $DIR/lint-attr-everywhere-late.rs:91:13
200 LL | #![deny(dyn_drop)]
203 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
204 --> $DIR/lint-attr-everywhere-late.rs:96:21
206 LL | fn assoc_fn() { discriminant::<i32>(&123); }
207 | ^^^^^^^^^^^^^^^^^^^^^^^^^
209 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
210 --> $DIR/lint-attr-everywhere-late.rs:96:41
212 LL | fn assoc_fn() { discriminant::<i32>(&123); }
214 note: the lint level is defined here
215 --> $DIR/lint-attr-everywhere-late.rs:95:12
217 LL | #[deny(enum_intrinsics_non_enums)]
218 | ^^^^^^^^^^^^^^^^^^^^^^^^^
220 error: literal out of range for `u8`
221 --> $DIR/lint-attr-everywhere-late.rs:98:59
223 LL | #[deny(overflowing_literals)] const ASSOC_CONST: u8 = 1000;
226 = note: the literal `1000` does not fit into the type `u8` whose range is `0..=255`
227 note: the lint level is defined here
228 --> $DIR/lint-attr-everywhere-late.rs:98:12
230 LL | #[deny(overflowing_literals)] const ASSOC_CONST: u8 = 1000;
231 | ^^^^^^^^^^^^^^^^^^^^
233 error: variable `PARAM` should have a snake case name
234 --> $DIR/lint-attr-everywhere-late.rs:131:37
236 LL | fn function(#[deny(non_snake_case)] PARAM: i32) {}
237 | ^^^^^ help: convert the identifier to snake case: `param`
239 note: the lint level is defined here
240 --> $DIR/lint-attr-everywhere-late.rs:131:20
242 LL | fn function(#[deny(non_snake_case)] PARAM: i32) {}
245 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
246 --> $DIR/lint-attr-everywhere-late.rs:139:13
248 LL | let _ = discriminant::<i32>(&123);
249 | ^^^^^^^^^^^^^^^^^^^^^^^^^
251 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
252 --> $DIR/lint-attr-everywhere-late.rs:139:33
254 LL | let _ = discriminant::<i32>(&123);
256 note: the lint level is defined here
257 --> $DIR/lint-attr-everywhere-late.rs:138:12
259 LL | #[deny(enum_intrinsics_non_enums)]
260 | ^^^^^^^^^^^^^^^^^^^^^^^^^
262 error: variable `PARAM` should have a snake case name
263 --> $DIR/lint-attr-everywhere-late.rs:145:44
265 LL | let closure = |#[deny(non_snake_case)] PARAM: i32| {};
266 | ^^^^^ help: convert the identifier to snake case: `param`
268 note: the lint level is defined here
269 --> $DIR/lint-attr-everywhere-late.rs:145:27
271 LL | let closure = |#[deny(non_snake_case)] PARAM: i32| {};
274 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
275 --> $DIR/lint-attr-everywhere-late.rs:155:13
277 LL | discriminant::<i32>(&123);
278 | ^^^^^^^^^^^^^^^^^^^^^^^^^
280 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
281 --> $DIR/lint-attr-everywhere-late.rs:155:33
283 LL | discriminant::<i32>(&123);
285 note: the lint level is defined here
286 --> $DIR/lint-attr-everywhere-late.rs:153:17
288 LL | #![deny(enum_intrinsics_non_enums)]
289 | ^^^^^^^^^^^^^^^^^^^^^^^^^
291 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
292 --> $DIR/lint-attr-everywhere-late.rs:161:13
294 LL | discriminant::<i32>(&123);
295 | ^^^^^^^^^^^^^^^^^^^^^^^^^
297 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
298 --> $DIR/lint-attr-everywhere-late.rs:161:33
300 LL | discriminant::<i32>(&123);
302 note: the lint level is defined here
303 --> $DIR/lint-attr-everywhere-late.rs:159:16
305 LL | #[deny(enum_intrinsics_non_enums)]
306 | ^^^^^^^^^^^^^^^^^^^^^^^^^
308 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
309 --> $DIR/lint-attr-everywhere-late.rs:168:9
311 LL | discriminant::<i32>(&123);
312 | ^^^^^^^^^^^^^^^^^^^^^^^^^
314 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
315 --> $DIR/lint-attr-everywhere-late.rs:168:29
317 LL | discriminant::<i32>(&123);
319 note: the lint level is defined here
320 --> $DIR/lint-attr-everywhere-late.rs:167:17
322 LL | #![deny(enum_intrinsics_non_enums)]
323 | ^^^^^^^^^^^^^^^^^^^^^^^^^
325 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
326 --> $DIR/lint-attr-everywhere-late.rs:172:9
328 LL | discriminant::<i32>(&123);
329 | ^^^^^^^^^^^^^^^^^^^^^^^^^
331 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
332 --> $DIR/lint-attr-everywhere-late.rs:172:29
334 LL | discriminant::<i32>(&123);
336 note: the lint level is defined here
337 --> $DIR/lint-attr-everywhere-late.rs:171:16
339 LL | #[deny(enum_intrinsics_non_enums)]
340 | ^^^^^^^^^^^^^^^^^^^^^^^^^
342 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
343 --> $DIR/lint-attr-everywhere-late.rs:177:5
345 LL | discriminant::<i32>(&123);
346 | ^^^^^^^^^^^^^^^^^^^^^^^^^
348 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
349 --> $DIR/lint-attr-everywhere-late.rs:177:25
351 LL | discriminant::<i32>(&123);
353 note: the lint level is defined here
354 --> $DIR/lint-attr-everywhere-late.rs:176:12
356 LL | #[deny(enum_intrinsics_non_enums)]
357 | ^^^^^^^^^^^^^^^^^^^^^^^^^
359 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
360 --> $DIR/lint-attr-everywhere-late.rs:179:41
362 LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
363 | ^^^^^^^^^^^^^^^^^^^^^^^^^
365 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
366 --> $DIR/lint-attr-everywhere-late.rs:179:61
368 LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
370 note: the lint level is defined here
371 --> $DIR/lint-attr-everywhere-late.rs:179:13
373 LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
374 | ^^^^^^^^^^^^^^^^^^^^^^^^^
376 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
377 --> $DIR/lint-attr-everywhere-late.rs:180:41
379 LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
380 | ^^^^^^^^^^^^^^^^^^^^^^^^^
382 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
383 --> $DIR/lint-attr-everywhere-late.rs:180:61
385 LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
387 note: the lint level is defined here
388 --> $DIR/lint-attr-everywhere-late.rs:180:13
390 LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
391 | ^^^^^^^^^^^^^^^^^^^^^^^^^
393 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
394 --> $DIR/lint-attr-everywhere-late.rs:182:45
396 LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
397 | ^^^^^^^^^^^^^^^^^^^^^^^^^
399 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
400 --> $DIR/lint-attr-everywhere-late.rs:182:65
402 LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
404 note: the lint level is defined here
405 --> $DIR/lint-attr-everywhere-late.rs:182:17
407 LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
408 | ^^^^^^^^^^^^^^^^^^^^^^^^^
410 error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
411 --> $DIR/lint-attr-everywhere-late.rs:184:52
413 LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
414 | ^^^^^^^^^^^^^^^^^^^^^^^^^
416 note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum.
417 --> $DIR/lint-attr-everywhere-late.rs:184:72
419 LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
421 note: the lint level is defined here
422 --> $DIR/lint-attr-everywhere-late.rs:184:24
424 LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
425 | ^^^^^^^^^^^^^^^^^^^^^^^^^
427 error: aborting due to 31 previous errors