]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: variant name ends with the enum's name |
2 | --> $DIR/enum_variants.rs:16:5 | |
3 | | | |
4 | LL | cFoo, | |
5 | | ^^^^ | |
6 | | | |
7 | = note: `-D clippy::enum-variant-names` implied by `-D warnings` | |
8 | ||
9 | error: variant name starts with the enum's name | |
10 | --> $DIR/enum_variants.rs:27:5 | |
11 | | | |
12 | LL | FoodGood, | |
13 | | ^^^^^^^^ | |
14 | ||
15 | error: variant name starts with the enum's name | |
16 | --> $DIR/enum_variants.rs:28:5 | |
17 | | | |
18 | LL | FoodMiddle, | |
19 | | ^^^^^^^^^^ | |
20 | ||
21 | error: variant name starts with the enum's name | |
22 | --> $DIR/enum_variants.rs:29:5 | |
23 | | | |
24 | LL | FoodBad, | |
25 | | ^^^^^^^ | |
26 | ||
27 | error: all variants have the same prefix: `Food` | |
28 | --> $DIR/enum_variants.rs:26:1 | |
29 | | | |
30 | LL | / enum Food { | |
31 | LL | | FoodGood, | |
32 | LL | | FoodMiddle, | |
33 | LL | | FoodBad, | |
34 | LL | | } | |
35 | | |_^ | |
36 | | | |
37 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
38 | ||
39 | error: all variants have the same prefix: `CallType` | |
40 | --> $DIR/enum_variants.rs:36:1 | |
41 | | | |
42 | LL | / enum BadCallType { | |
43 | LL | | CallTypeCall, | |
44 | LL | | CallTypeCreate, | |
45 | LL | | CallTypeDestroy, | |
46 | LL | | } | |
47 | | |_^ | |
48 | | | |
49 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
50 | ||
51 | error: all variants have the same prefix: `Constant` | |
52 | --> $DIR/enum_variants.rs:48:1 | |
53 | | | |
54 | LL | / enum Consts { | |
55 | LL | | ConstantInt, | |
56 | LL | | ConstantCake, | |
57 | LL | | ConstantLie, | |
58 | LL | | } | |
59 | | |_^ | |
60 | | | |
61 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
62 | ||
63 | error: all variants have the same prefix: `With` | |
64 | --> $DIR/enum_variants.rs:82:1 | |
65 | | | |
66 | LL | / enum Seallll { | |
67 | LL | | WithOutCake, | |
68 | LL | | WithOutTea, | |
69 | LL | | WithOut, | |
70 | LL | | } | |
71 | | |_^ | |
72 | | | |
73 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
74 | ||
75 | error: all variants have the same prefix: `Prefix` | |
76 | --> $DIR/enum_variants.rs:88:1 | |
77 | | | |
78 | LL | / enum NonCaps { | |
79 | LL | | Prefixçš„, | |
80 | LL | | PrefixTea, | |
81 | LL | | PrefixCake, | |
82 | LL | | } | |
83 | | |_^ | |
84 | | | |
85 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
86 | ||
87 | error: all variants have the same prefix: `With` | |
88 | --> $DIR/enum_variants.rs:94:1 | |
89 | | | |
90 | LL | / pub enum PubSeall { | |
91 | LL | | WithOutCake, | |
92 | LL | | WithOutTea, | |
93 | LL | | WithOut, | |
94 | LL | | } | |
95 | | |_^ | |
96 | | | |
97 | = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings` | |
98 | = help: remove the prefixes and use full paths to the variants instead of glob imports | |
99 | ||
100 | error: all variants have the same postfix: `IData` | |
101 | --> $DIR/enum_variants.rs:137:1 | |
102 | | | |
103 | LL | / enum IDataRequest { | |
104 | LL | | PutIData(String), | |
105 | LL | | GetIData(String), | |
106 | LL | | DeleteUnpubIData(String), | |
107 | LL | | } | |
108 | | |_^ | |
109 | | | |
110 | = help: remove the postfixes and use full paths to the variants instead of glob imports | |
111 | ||
112 | error: all variants have the same postfix: `HIData` | |
113 | --> $DIR/enum_variants.rs:143:1 | |
114 | | | |
115 | LL | / enum HIDataRequest { | |
116 | LL | | PutHIData(String), | |
117 | LL | | GetHIData(String), | |
118 | LL | | DeleteUnpubHIData(String), | |
119 | LL | | } | |
120 | | |_^ | |
121 | | | |
122 | = help: remove the postfixes and use full paths to the variants instead of glob imports | |
123 | ||
124 | error: aborting due to 12 previous errors | |
125 |