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