@@ -305,124 +305,136 @@ note: the lint level is defined here
305
305
LL | #[deny(enum_intrinsics_non_enums)]
306
306
| ^^^^^^^^^^^^^^^^^^^^^^^^^
307
307
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
+
308
320
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
321
+ --> $DIR/lint-attr-everywhere-late.rs:173 :9
310
322
|
311
323
LL | discriminant::<i32>(&123);
312
324
| ^^^^^^^^^^^^^^^^^^^^^^^^^
313
325
|
314
326
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
327
+ --> $DIR/lint-attr-everywhere-late.rs:173 :29
316
328
|
317
329
LL | discriminant::<i32>(&123);
318
330
| ^^^^
319
331
note: the lint level is defined here
320
- --> $DIR/lint-attr-everywhere-late.rs:167 :17
332
+ --> $DIR/lint-attr-everywhere-late.rs:172 :17
321
333
|
322
334
LL | #![deny(enum_intrinsics_non_enums)]
323
335
| ^^^^^^^^^^^^^^^^^^^^^^^^^
324
336
325
337
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
338
+ --> $DIR/lint-attr-everywhere-late.rs:177 :9
327
339
|
328
340
LL | discriminant::<i32>(&123);
329
341
| ^^^^^^^^^^^^^^^^^^^^^^^^^
330
342
|
331
343
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
344
+ --> $DIR/lint-attr-everywhere-late.rs:177 :29
333
345
|
334
346
LL | discriminant::<i32>(&123);
335
347
| ^^^^
336
348
note: the lint level is defined here
337
- --> $DIR/lint-attr-everywhere-late.rs:171 :16
349
+ --> $DIR/lint-attr-everywhere-late.rs:176 :16
338
350
|
339
351
LL | #[deny(enum_intrinsics_non_enums)]
340
352
| ^^^^^^^^^^^^^^^^^^^^^^^^^
341
353
342
354
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
355
+ --> $DIR/lint-attr-everywhere-late.rs:182 :5
344
356
|
345
357
LL | discriminant::<i32>(&123);
346
358
| ^^^^^^^^^^^^^^^^^^^^^^^^^
347
359
|
348
360
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
361
+ --> $DIR/lint-attr-everywhere-late.rs:182 :25
350
362
|
351
363
LL | discriminant::<i32>(&123);
352
364
| ^^^^
353
365
note: the lint level is defined here
354
- --> $DIR/lint-attr-everywhere-late.rs:176 :12
366
+ --> $DIR/lint-attr-everywhere-late.rs:181 :12
355
367
|
356
368
LL | #[deny(enum_intrinsics_non_enums)]
357
369
| ^^^^^^^^^^^^^^^^^^^^^^^^^
358
370
359
371
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
372
+ --> $DIR/lint-attr-everywhere-late.rs:184 :41
361
373
|
362
374
LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
363
375
| ^^^^^^^^^^^^^^^^^^^^^^^^^
364
376
|
365
377
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
378
+ --> $DIR/lint-attr-everywhere-late.rs:184 :61
367
379
|
368
380
LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
369
381
| ^^^^
370
382
note: the lint level is defined here
371
- --> $DIR/lint-attr-everywhere-late.rs:179 :13
383
+ --> $DIR/lint-attr-everywhere-late.rs:184 :13
372
384
|
373
385
LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)];
374
386
| ^^^^^^^^^^^^^^^^^^^^^^^^^
375
387
376
388
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
389
+ --> $DIR/lint-attr-everywhere-late.rs:185 :41
378
390
|
379
391
LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
380
392
| ^^^^^^^^^^^^^^^^^^^^^^^^^
381
393
|
382
394
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
395
+ --> $DIR/lint-attr-everywhere-late.rs:185 :61
384
396
|
385
397
LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
386
398
| ^^^^
387
399
note: the lint level is defined here
388
- --> $DIR/lint-attr-everywhere-late.rs:180 :13
400
+ --> $DIR/lint-attr-everywhere-late.rs:185 :13
389
401
|
390
402
LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),);
391
403
| ^^^^^^^^^^^^^^^^^^^^^^^^^
392
404
393
405
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
406
+ --> $DIR/lint-attr-everywhere-late.rs:187 :45
395
407
|
396
408
LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
397
409
| ^^^^^^^^^^^^^^^^^^^^^^^^^
398
410
|
399
411
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
412
+ --> $DIR/lint-attr-everywhere-late.rs:187 :65
401
413
|
402
414
LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
403
415
| ^^^^
404
416
note: the lint level is defined here
405
- --> $DIR/lint-attr-everywhere-late.rs:182 :17
417
+ --> $DIR/lint-attr-everywhere-late.rs:187 :17
406
418
|
407
419
LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
408
420
| ^^^^^^^^^^^^^^^^^^^^^^^^^
409
421
410
422
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
423
+ --> $DIR/lint-attr-everywhere-late.rs:189 :52
412
424
|
413
425
LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
414
426
| ^^^^^^^^^^^^^^^^^^^^^^^^^
415
427
|
416
428
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
429
+ --> $DIR/lint-attr-everywhere-late.rs:189 :72
418
430
|
419
431
LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
420
432
| ^^^^
421
433
note: the lint level is defined here
422
- --> $DIR/lint-attr-everywhere-late.rs:184 :24
434
+ --> $DIR/lint-attr-everywhere-late.rs:189 :24
423
435
|
424
436
LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123));
425
437
| ^^^^^^^^^^^^^^^^^^^^^^^^^
426
438
427
- error: aborting due to 31 previous errors
439
+ error: aborting due to 32 previous errors
428
440
0 commit comments