mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
101 lines
2.4 KiB
Text
101 lines
2.4 KiB
Text
error: Variant name ends with the enum's name
|
|
--> $DIR/enum_variants.rs:24:5
|
|
|
|
|
24 | cFoo,
|
|
| ^^^^
|
|
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:35:5
|
|
|
|
|
35 | FoodGood,
|
|
| ^^^^^^^^
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:36:5
|
|
|
|
|
36 | FoodMiddle,
|
|
| ^^^^^^^^^^
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:37:5
|
|
|
|
|
37 | FoodBad,
|
|
| ^^^^^^^
|
|
|
|
error: All variants have the same prefix: `Food`
|
|
--> $DIR/enum_variants.rs:34:1
|
|
|
|
|
34 | / enum Food {
|
|
35 | | FoodGood,
|
|
36 | | FoodMiddle,
|
|
37 | | FoodBad,
|
|
38 | | }
|
|
| |_^
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: All variants have the same prefix: `CallType`
|
|
--> $DIR/enum_variants.rs:44:1
|
|
|
|
|
44 | / enum BadCallType {
|
|
45 | | CallTypeCall,
|
|
46 | | CallTypeCreate,
|
|
47 | | CallTypeDestroy,
|
|
48 | | }
|
|
| |_^
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: All variants have the same prefix: `Constant`
|
|
--> $DIR/enum_variants.rs:56:1
|
|
|
|
|
56 | / enum Consts {
|
|
57 | | ConstantInt,
|
|
58 | | ConstantCake,
|
|
59 | | ConstantLie,
|
|
60 | | }
|
|
| |_^
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: All variants have the same prefix: `With`
|
|
--> $DIR/enum_variants.rs:90:1
|
|
|
|
|
90 | / enum Seallll {
|
|
91 | | WithOutCake,
|
|
92 | | WithOutTea,
|
|
93 | | WithOut,
|
|
94 | | }
|
|
| |_^
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: All variants have the same prefix: `Prefix`
|
|
--> $DIR/enum_variants.rs:96:1
|
|
|
|
|
96 | / enum NonCaps {
|
|
97 | | Prefix的,
|
|
98 | | PrefixTea,
|
|
99 | | PrefixCake,
|
|
100 | | }
|
|
| |_^
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: All variants have the same prefix: `With`
|
|
--> $DIR/enum_variants.rs:102:1
|
|
|
|
|
102 | / pub enum PubSeall {
|
|
103 | | WithOutCake,
|
|
104 | | WithOutTea,
|
|
105 | | WithOut,
|
|
106 | | }
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
error: aborting due to 10 previous errors
|
|
|