eb3970285b
In order to switch `clippy::uninlined_format_args` from pedantic to style, all existing tests must not raise a warning. I did not want to change the actual tests, so this is a relatively minor change that: * add `#![allow(clippy::uninlined_format_args)]` where needed * normalizes all allow/deny/warn attributes * all allow attributes are grouped together * sorted alphabetically * the `clippy::*` attributes are listed separate from the other ones. * deny and warn attributes are listed before the allowed ones changelog: none
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
error: wildcard match will also match any future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:40:9
|
|
|
|
|
LL | _ => eprintln!("Not red"),
|
|
| ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/wildcard_enum_match_arm.rs:3:9
|
|
|
|
|
LL | #![deny(clippy::wildcard_enum_match_arm)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: wildcard match will also match any future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:44:9
|
|
|
|
|
LL | _not_red => eprintln!("Not red"),
|
|
| ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
|
|
|
|
error: wildcard match will also match any future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:48:9
|
|
|
|
|
LL | not_red => format!("{:?}", not_red),
|
|
| ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
|
|
|
|
error: wildcard match will also match any future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:64:9
|
|
|
|
|
LL | _ => "No red",
|
|
| ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
|
|
|
error: wildcard matches known variants and will also match future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:81:9
|
|
|
|
|
LL | _ => {},
|
|
| ^ help: try this: `ErrorKind::PermissionDenied | _`
|
|
|
|
error: wildcard matches known variants and will also match future added variants
|
|
--> $DIR/wildcard_enum_match_arm.rs:99:13
|
|
|
|
|
LL | _ => (),
|
|
| ^ help: try this: `Enum::B | _`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|