@@ -305,124 +305,136 @@ note: the lint level is defined here
305305LL | #[deny(enum_intrinsics_non_enums)]
306306 | ^^^^^^^^^^^^^^^^^^^^^^^^^
307307
308+ error: variable `ARM_VAR` should have a snake case name
309+ --> $DIR/lint-attr-everywhere-late.rs:167:9
310+ |
311+ LL | ARM_VAR => {}
312+ | ^^^^^^^ help: convert the identifier to snake case: `arm_var`
313+ |
314+ note: the lint level is defined here
315+ --> $DIR/lint-attr-everywhere-late.rs:166:16
316+ |
317+ LL | #[deny(non_snake_case)]
318+ | ^^^^^^^^^^^^^^
319+
308320error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
309- --> $DIR/lint-attr-everywhere-late.rs:168 :9
321+ --> $DIR/lint-attr-everywhere-late.rs:173 :9
310322 |
311323LL | discriminant::<i32>(&123);
312324 | ^^^^^^^^^^^^^^^^^^^^^^^^^
313325 |
314326note: 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
327+ --> $DIR/lint-attr-everywhere-late.rs:173 :29
316328 |
317329LL | discriminant::<i32>(&123);
318330 | ^^^^
319331note: the lint level is defined here
320- --> $DIR/lint-attr-everywhere-late.rs:167 :17
332+ --> $DIR/lint-attr-everywhere-late.rs:172 :17
321333 |
322334LL | #![deny(enum_intrinsics_non_enums)]
323335 | ^^^^^^^^^^^^^^^^^^^^^^^^^
324336
325337error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
326- --> $DIR/lint-attr-everywhere-late.rs:172 :9
338+ --> $DIR/lint-attr-everywhere-late.rs:177 :9
327339 |
328340LL | discriminant::<i32>(&123);
329341 | ^^^^^^^^^^^^^^^^^^^^^^^^^
330342 |
331343note: 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
344+ --> $DIR/lint-attr-everywhere-late.rs:177 :29
333345 |
334346LL | discriminant::<i32>(&123);
335347 | ^^^^
336348note: the lint level is defined here
337- --> $DIR/lint-attr-everywhere-late.rs:171 :16
349+ --> $DIR/lint-attr-everywhere-late.rs:176 :16
338350 |
339351LL | #[deny(enum_intrinsics_non_enums)]
340352 | ^^^^^^^^^^^^^^^^^^^^^^^^^
341353
342354error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
343- --> $DIR/lint-attr-everywhere-late.rs:177 :5
355+ --> $DIR/lint-attr-everywhere-late.rs:182 :5
344356 |
345357LL | discriminant::<i32>(&123);
346358 | ^^^^^^^^^^^^^^^^^^^^^^^^^
347359 |
348360note: 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
361+ --> $DIR/lint-attr-everywhere-late.rs:182 :25
350362 |
351363LL | discriminant::<i32>(&123);
352364 | ^^^^
353365note: the lint level is defined here
354- --> $DIR/lint-attr-everywhere-late.rs:176 :12
366+ --> $DIR/lint-attr-everywhere-late.rs:181 :12
355367 |
356368LL | #[deny(enum_intrinsics_non_enums)]
357369 | ^^^^^^^^^^^^^^^^^^^^^^^^^
358370
359371error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
360- --> $DIR/lint-attr-everywhere-late.rs:179 :41
372+ --> $DIR/lint-attr-everywhere-late.rs:184 :41
361373 |
362374LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
363375 | ^^^^^^^^^^^^^^^^^^^^^^^^^
364376 |
365377note: 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
378+ --> $DIR/lint-attr-everywhere-late.rs:184 :61
367379 |
368380LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
369381 | ^^^^
370382note: the lint level is defined here
371- --> $DIR/lint-attr-everywhere-late.rs:179 :13
383+ --> $DIR/lint-attr-everywhere-late.rs:184 :13
372384 |
373385LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
374386 | ^^^^^^^^^^^^^^^^^^^^^^^^^
375387
376388error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
377- --> $DIR/lint-attr-everywhere-late.rs:180 :41
389+ --> $DIR/lint-attr-everywhere-late.rs:185 :41
378390 |
379391LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
380392 | ^^^^^^^^^^^^^^^^^^^^^^^^^
381393 |
382394note: 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
395+ --> $DIR/lint-attr-everywhere-late.rs:185 :61
384396 |
385397LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
386398 | ^^^^
387399note: the lint level is defined here
388- --> $DIR/lint-attr-everywhere-late.rs:180 :13
400+ --> $DIR/lint-attr-everywhere-late.rs:185 :13
389401 |
390402LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
391403 | ^^^^^^^^^^^^^^^^^^^^^^^^^
392404
393405error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
394- --> $DIR/lint-attr-everywhere-late.rs:182 :45
406+ --> $DIR/lint-attr-everywhere-late.rs:187 :45
395407 |
396408LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
397409 | ^^^^^^^^^^^^^^^^^^^^^^^^^
398410 |
399411note: 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
412+ --> $DIR/lint-attr-everywhere-late.rs:187 :65
401413 |
402414LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
403415 | ^^^^
404416note: the lint level is defined here
405- --> $DIR/lint-attr-everywhere-late.rs:182 :17
417+ --> $DIR/lint-attr-everywhere-late.rs:187 :17
406418 |
407419LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
408420 | ^^^^^^^^^^^^^^^^^^^^^^^^^
409421
410422error: the return value of `mem::discriminant` is unspecified when called with a non-enum type
411- --> $DIR/lint-attr-everywhere-late.rs:184 :52
423+ --> $DIR/lint-attr-everywhere-late.rs:189 :52
412424 |
413425LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
414426 | ^^^^^^^^^^^^^^^^^^^^^^^^^
415427 |
416428note: 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
429+ --> $DIR/lint-attr-everywhere-late.rs:189 :72
418430 |
419431LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
420432 | ^^^^
421433note: the lint level is defined here
422- --> $DIR/lint-attr-everywhere-late.rs:184 :24
434+ --> $DIR/lint-attr-everywhere-late.rs:189 :24
423435 |
424436LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
425437 | ^^^^^^^^^^^^^^^^^^^^^^^^^
426438
427- error: aborting due to 31 previous errors
439+ error: aborting due to 32 previous errors
428440
0 commit comments