2020-08-28 14:10:16 +00:00
|
|
|
error: variant name ends with the enum's name
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:16:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | cFoo,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
error: all variants have the same prefix: `c`
|
|
|
|
--> $DIR/enum_variants.rs:14:1
|
|
|
|
|
|
|
|
|
LL | / enum Foo {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | | cFoo,
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
|
|
|
... |
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | | cBaz,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: variant name starts with the enum's name
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:30:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodGood,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: variant name starts with the enum's name
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:32:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodMiddle,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: variant name starts with the enum's name
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:34:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodBad,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: all variants have the same prefix: `Food`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:28:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum Food {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | FoodGood,
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
|
|
|
... |
|
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: all variants have the same prefix: `CallType`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:42:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum BadCallType {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | CallTypeCall,
|
|
|
|
LL | | CallTypeCreate,
|
|
|
|
LL | | CallTypeDestroy,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: all variants have the same prefix: `Constant`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:55:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum Consts {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | ConstantInt,
|
|
|
|
LL | | ConstantCake,
|
|
|
|
LL | | ConstantLie,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
error: all variants have the same prefix: `C`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:68:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | / enum Something {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | | CCall,
|
|
|
|
LL | | CCreate,
|
|
|
|
LL | | CCryogenize,
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
error: all variants have the same prefix: `WithOut`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:91:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | / enum Seallll {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-12-30 14:10:43 +00:00
|
|
|
LL | | WithOutCake,
|
|
|
|
LL | | WithOutTea,
|
|
|
|
LL | | WithOut,
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-02-25 10:25:22 +00:00
|
|
|
error: all variants have the same postfix: `IData`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:147:1
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | / enum IDataRequest {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-02-25 10:25:22 +00:00
|
|
|
LL | | PutIData(String),
|
|
|
|
LL | | GetIData(String),
|
|
|
|
LL | | DeleteUnpubIData(String),
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: all variants have the same postfix: `HIData`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:154:1
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | / enum HIDataRequest {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-02-25 10:25:22 +00:00
|
|
|
LL | | PutHIData(String),
|
|
|
|
LL | | GetHIData(String),
|
|
|
|
LL | | DeleteUnpubHIData(String),
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2022-06-30 08:50:09 +00:00
|
|
|
error: all variants have the same prefix: `_Type`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:175:5
|
2022-06-30 08:50:09 +00:00
|
|
|
|
|
|
|
|
LL | / enum DoLint {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-06-30 08:50:09 +00:00
|
|
|
LL | | _TypeCreate,
|
|
|
|
LL | | _TypeRead,
|
|
|
|
LL | | _TypeUpdate,
|
|
|
|
LL | | _TypeDestroy,
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: all variants have the same postfix: `Type`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/enum_variants.rs:183:5
|
2022-06-30 08:50:09 +00:00
|
|
|
|
|
|
|
|
LL | / enum DoLintToo {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-06-30 08:50:09 +00:00
|
|
|
LL | | _CreateType,
|
|
|
|
LL | | _UpdateType,
|
|
|
|
LL | | _DeleteType,
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2023-11-02 16:35:56 +00:00
|
|
|
error: variant name starts with the enum's name
|
|
|
|
--> $DIR/enum_variants.rs:212:9
|
|
|
|
|
|
|
|
|
LL | DataDependent,
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: variant name starts with the enum's name
|
|
|
|
--> $DIR/enum_variants.rs:217:9
|
|
|
|
|
|
|
|
|
LL | DatasDependent,
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|