rust-clippy/tests/ui/enum_variants.stderr

175 lines
4.1 KiB
Text
Raw Normal View History

error: variant name ends with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:16:5
|
2018-12-27 15:57:55 +00:00
LL | cFoo,
| ^^^^
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
error: all variants have the same prefix: `c`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:14:1
|
LL | / enum Foo {
LL | |
LL | | cFoo,
LL | |
... |
LL | | cBaz,
LL | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: variant name starts with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:30:5
|
2018-12-27 15:57:55 +00:00
LL | FoodGood,
| ^^^^^^^^
error: variant name starts with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:32:5
|
2018-12-27 15:57:55 +00:00
LL | FoodMiddle,
| ^^^^^^^^^^
error: variant name starts with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:34:5
|
2018-12-27 15:57:55 +00:00
LL | FoodBad,
| ^^^^^^^
error: all variants have the same prefix: `Food`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:28:1
|
2018-12-27 15:57:55 +00:00
LL | / enum Food {
LL | |
2018-12-27 15:57:55 +00:00
LL | | FoodGood,
LL | |
... |
LL | |
2018-12-27 15:57:55 +00:00
LL | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `CallType`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:42:1
|
2018-12-27 15:57:55 +00:00
LL | / enum BadCallType {
LL | |
2018-12-27 15:57:55 +00:00
LL | | CallTypeCall,
LL | | CallTypeCreate,
LL | | CallTypeDestroy,
LL | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `Constant`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:55:1
|
2018-12-27 15:57:55 +00:00
LL | / enum Consts {
LL | |
2018-12-27 15:57:55 +00:00
LL | | ConstantInt,
LL | | ConstantCake,
LL | | ConstantLie,
LL | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `C`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:68:1
|
LL | / enum Something {
LL | |
LL | | CCall,
LL | | CCreate,
LL | | CCryogenize,
2018-12-27 15:57:55 +00:00
LL | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `WithOut`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:91:1
2018-12-27 15:57:55 +00:00
|
LL | / enum Seallll {
LL | |
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
error: all variants have the same postfix: `IData`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:147:1
|
LL | / enum IDataRequest {
LL | |
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-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:154:1
|
LL | / enum HIDataRequest {
LL | |
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
error: all variants have the same prefix: `_Type`
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:175:5
|
LL | / enum DoLint {
LL | |
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-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:183:5
|
LL | / enum DoLintToo {
LL | |
LL | | _CreateType,
LL | | _UpdateType,
LL | | _DeleteType,
LL | | }
| |_____^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
error: variant name starts with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:212:9
|
LL | DataDependent,
| ^^^^^^^^^^^^^
error: variant name starts with the enum's name
2024-02-17 12:16:29 +00:00
--> tests/ui/enum_variants.rs:217:9
|
LL | DatasDependent,
| ^^^^^^^^^^^^^^
error: aborting due to 16 previous errors
2018-01-16 16:06:27 +00:00