|
1 | 1 | error: Variant name ends with the enum's name |
2 | | - --> $DIR/enum_variants.rs:24:5 |
| 2 | + --> $DIR/enum_variants.rs:25:5 |
3 | 3 | | |
4 | | -24 | cFoo, |
| 4 | +25 | cFoo, |
5 | 5 | | ^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::enum-variant-names` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: Variant name starts with the enum's name |
10 | | - --> $DIR/enum_variants.rs:35:5 |
| 10 | + --> $DIR/enum_variants.rs:36:5 |
11 | 11 | | |
12 | | -35 | FoodGood, |
| 12 | +36 | FoodGood, |
13 | 13 | | ^^^^^^^^ |
14 | 14 |
|
15 | 15 | error: Variant name starts with the enum's name |
16 | | - --> $DIR/enum_variants.rs:36:5 |
| 16 | + --> $DIR/enum_variants.rs:37:5 |
17 | 17 | | |
18 | | -36 | FoodMiddle, |
| 18 | +37 | FoodMiddle, |
19 | 19 | | ^^^^^^^^^^ |
20 | 20 |
|
21 | 21 | error: Variant name starts with the enum's name |
22 | | - --> $DIR/enum_variants.rs:37:5 |
| 22 | + --> $DIR/enum_variants.rs:38:5 |
23 | 23 | | |
24 | | -37 | FoodBad, |
| 24 | +38 | FoodBad, |
25 | 25 | | ^^^^^^^ |
26 | 26 |
|
27 | 27 | error: All variants have the same prefix: `Food` |
28 | | - --> $DIR/enum_variants.rs:34:1 |
| 28 | + --> $DIR/enum_variants.rs:35:1 |
29 | 29 | | |
30 | | -34 | / enum Food { |
31 | | -35 | | FoodGood, |
32 | | -36 | | FoodMiddle, |
33 | | -37 | | FoodBad, |
34 | | -38 | | } |
| 30 | +35 | / enum Food { |
| 31 | +36 | | FoodGood, |
| 32 | +37 | | FoodMiddle, |
| 33 | +38 | | FoodBad, |
| 34 | +39 | | } |
35 | 35 | | |_^ |
36 | 36 | | |
37 | 37 | = help: remove the prefixes and use full paths to the variants instead of glob imports |
38 | 38 |
|
39 | 39 | error: All variants have the same prefix: `CallType` |
40 | | - --> $DIR/enum_variants.rs:44:1 |
| 40 | + --> $DIR/enum_variants.rs:45:1 |
41 | 41 | | |
42 | | -44 | / enum BadCallType { |
43 | | -45 | | CallTypeCall, |
44 | | -46 | | CallTypeCreate, |
45 | | -47 | | CallTypeDestroy, |
46 | | -48 | | } |
| 42 | +45 | / enum BadCallType { |
| 43 | +46 | | CallTypeCall, |
| 44 | +47 | | CallTypeCreate, |
| 45 | +48 | | CallTypeDestroy, |
| 46 | +49 | | } |
47 | 47 | | |_^ |
48 | 48 | | |
49 | 49 | = help: remove the prefixes and use full paths to the variants instead of glob imports |
50 | 50 |
|
51 | 51 | error: All variants have the same prefix: `Constant` |
52 | | - --> $DIR/enum_variants.rs:56:1 |
| 52 | + --> $DIR/enum_variants.rs:57:1 |
53 | 53 | | |
54 | | -56 | / enum Consts { |
55 | | -57 | | ConstantInt, |
56 | | -58 | | ConstantCake, |
57 | | -59 | | ConstantLie, |
58 | | -60 | | } |
| 54 | +57 | / enum Consts { |
| 55 | +58 | | ConstantInt, |
| 56 | +59 | | ConstantCake, |
| 57 | +60 | | ConstantLie, |
| 58 | +61 | | } |
59 | 59 | | |_^ |
60 | 60 | | |
61 | 61 | = help: remove the prefixes and use full paths to the variants instead of glob imports |
62 | 62 |
|
63 | 63 | error: All variants have the same prefix: `With` |
64 | | - --> $DIR/enum_variants.rs:90:1 |
| 64 | + --> $DIR/enum_variants.rs:91:1 |
65 | 65 | | |
66 | | -90 | / enum Seallll { |
67 | | -91 | | WithOutCake, |
68 | | -92 | | WithOutTea, |
69 | | -93 | | WithOut, |
70 | | -94 | | } |
| 66 | +91 | / enum Seallll { |
| 67 | +92 | | WithOutCake, |
| 68 | +93 | | WithOutTea, |
| 69 | +94 | | WithOut, |
| 70 | +95 | | } |
71 | 71 | | |_^ |
72 | 72 | | |
73 | 73 | = help: remove the prefixes and use full paths to the variants instead of glob imports |
74 | 74 |
|
75 | 75 | error: All variants have the same prefix: `Prefix` |
76 | | - --> $DIR/enum_variants.rs:96:1 |
| 76 | + --> $DIR/enum_variants.rs:97:1 |
77 | 77 | | |
78 | | -96 | / enum NonCaps { |
79 | | -97 | | Prefix的, |
80 | | -98 | | PrefixTea, |
81 | | -99 | | PrefixCake, |
82 | | -100 | | } |
| 78 | +97 | / enum NonCaps { |
| 79 | +98 | | Prefix的, |
| 80 | +99 | | PrefixTea, |
| 81 | +100 | | PrefixCake, |
| 82 | +101 | | } |
83 | 83 | | |_^ |
84 | 84 | | |
85 | 85 | = help: remove the prefixes and use full paths to the variants instead of glob imports |
86 | 86 |
|
87 | 87 | error: All variants have the same prefix: `With` |
88 | | - --> $DIR/enum_variants.rs:102:1 |
| 88 | + --> $DIR/enum_variants.rs:103:1 |
89 | 89 | | |
90 | | -102 | / pub enum PubSeall { |
91 | | -103 | | WithOutCake, |
92 | | -104 | | WithOutTea, |
93 | | -105 | | WithOut, |
94 | | -106 | | } |
| 90 | +103 | / pub enum PubSeall { |
| 91 | +104 | | WithOutCake, |
| 92 | +105 | | WithOutTea, |
| 93 | +106 | | WithOut, |
| 94 | +107 | | } |
95 | 95 | | |_^ |
96 | 96 | | |
97 | 97 | = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings` |
|
0 commit comments