fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.7 KiB162 linesraw
1error: variant name ends with the enum's name
2  --> $DIR/enum_variants.rs:16:5
3   |
4LL |     cFoo,
5   |     ^^^^
6   |
7   = note: `-D clippy::enum-variant-names` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
9
10error: all variants have the same prefix: `c`
11  --> $DIR/enum_variants.rs:14:1
12   |
13LL | / enum Foo {
14LL | |
15LL | |     cFoo,
16LL | |
17...  |
18LL | |     cBaz,
19LL | | }
20   | |_^
21   |
22   = help: remove the prefixes and use full paths to the variants instead of glob imports
23
24error: variant name starts with the enum's name
25  --> $DIR/enum_variants.rs:30:5
26   |
27LL |     FoodGood,
28   |     ^^^^^^^^
29
30error: variant name starts with the enum's name
31  --> $DIR/enum_variants.rs:32:5
32   |
33LL |     FoodMiddle,
34   |     ^^^^^^^^^^
35
36error: variant name starts with the enum's name
37  --> $DIR/enum_variants.rs:34:5
38   |
39LL |     FoodBad,
40   |     ^^^^^^^
41
42error: all variants have the same prefix: `Food`
43  --> $DIR/enum_variants.rs:28:1
44   |
45LL | / enum Food {
46LL | |
47LL | |     FoodGood,
48LL | |
49...  |
50LL | |
51LL | | }
52   | |_^
53   |
54   = help: remove the prefixes and use full paths to the variants instead of glob imports
55
56error: all variants have the same prefix: `CallType`
57  --> $DIR/enum_variants.rs:42:1
58   |
59LL | / enum BadCallType {
60LL | |
61LL | |     CallTypeCall,
62LL | |     CallTypeCreate,
63LL | |     CallTypeDestroy,
64LL | | }
65   | |_^
66   |
67   = help: remove the prefixes and use full paths to the variants instead of glob imports
68
69error: all variants have the same prefix: `Constant`
70  --> $DIR/enum_variants.rs:55:1
71   |
72LL | / enum Consts {
73LL | |
74LL | |     ConstantInt,
75LL | |     ConstantCake,
76LL | |     ConstantLie,
77LL | | }
78   | |_^
79   |
80   = help: remove the prefixes and use full paths to the variants instead of glob imports
81
82error: all variants have the same prefix: `C`
83  --> $DIR/enum_variants.rs:68:1
84   |
85LL | / enum Something {
86LL | |
87LL | |     CCall,
88LL | |     CCreate,
89LL | |     CCryogenize,
90LL | | }
91   | |_^
92   |
93   = help: remove the prefixes and use full paths to the variants instead of glob imports
94
95error: all variants have the same prefix: `WithOut`
96  --> $DIR/enum_variants.rs:91:1
97   |
98LL | / enum Seallll {
99LL | |
100LL | |     WithOutCake,
101LL | |     WithOutTea,
102LL | |     WithOut,
103LL | | }
104   | |_^
105   |
106   = help: remove the prefixes and use full paths to the variants instead of glob imports
107
108error: all variants have the same postfix: `IData`
109  --> $DIR/enum_variants.rs:147:1
110   |
111LL | / enum IDataRequest {
112LL | |
113LL | |     PutIData(String),
114LL | |     GetIData(String),
115LL | |     DeleteUnpubIData(String),
116LL | | }
117   | |_^
118   |
119   = help: remove the postfixes and use full paths to the variants instead of glob imports
120
121error: all variants have the same postfix: `HIData`
122  --> $DIR/enum_variants.rs:154:1
123   |
124LL | / enum HIDataRequest {
125LL | |
126LL | |     PutHIData(String),
127LL | |     GetHIData(String),
128LL | |     DeleteUnpubHIData(String),
129LL | | }
130   | |_^
131   |
132   = help: remove the postfixes and use full paths to the variants instead of glob imports
133
134error: all variants have the same prefix: `_Type`
135  --> $DIR/enum_variants.rs:175:5
136   |
137LL | /     enum DoLint {
138LL | |
139LL | |         _TypeCreate,
140LL | |         _TypeRead,
141LL | |         _TypeUpdate,
142LL | |         _TypeDestroy,
143LL | |     }
144   | |_____^
145   |
146   = help: remove the prefixes and use full paths to the variants instead of glob imports
147
148error: all variants have the same postfix: `Type`
149  --> $DIR/enum_variants.rs:183:5
150   |
151LL | /     enum DoLintToo {
152LL | |
153LL | |         _CreateType,
154LL | |         _UpdateType,
155LL | |         _DeleteType,
156LL | |     }
157   | |_____^
158   |
159   = help: remove the postfixes and use full paths to the variants instead of glob imports
160
161error: aborting due to 14 previous errors
162