mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
dfbca7ffa8
Small performance improvement when comparing symbols for `maybe_misused_cfg` Improve suggestion for `maybe_misused_cfg` lint
53 lines
1.9 KiB
Text
53 lines
1.9 KiB
Text
error: 'feature' may be misspelled as 'features'
|
|
--> $DIR/cfg_features.rs:4:11
|
|
|
|
|
LL | #[cfg(features = "not-really-a-feature")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `feature = "not-really-a-feature"`
|
|
|
|
|
= note: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::maybe_misused_cfg)]`
|
|
|
|
error: 'feature' may be misspelled as 'features'
|
|
--> $DIR/cfg_features.rs:9:34
|
|
|
|
|
LL | #[cfg(all(feature = "right", features = "wrong"))]
|
|
| ^^^^^^^^^^^^^^^^^^ help: did you mean: `feature = "wrong"`
|
|
|
|
error: 'feature' may be misspelled as 'features'
|
|
--> $DIR/cfg_features.rs:13:15
|
|
|
|
|
LL | #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
|
|
| ^^^^^^^^^^^^^^^^^^^ help: did you mean: `feature = "wrong1"`
|
|
|
|
error: 'feature' may be misspelled as 'features'
|
|
--> $DIR/cfg_features.rs:13:59
|
|
|
|
|
LL | #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
|
|
| ^^^^^^^^^^^^^^^^^^^ help: did you mean: `feature = "wrong2"`
|
|
|
|
error: 'test' may be misspelled as 'tests'
|
|
--> $DIR/cfg_features.rs:18:11
|
|
|
|
|
LL | #[cfg(tests)]
|
|
| ^^^^^ help: did you mean: `test`
|
|
|
|
error: 'test' may be misspelled as 'Test'
|
|
--> $DIR/cfg_features.rs:21:11
|
|
|
|
|
LL | #[cfg(Test)]
|
|
| ^^^^ help: did you mean: `test`
|
|
|
|
error: 'test' may be misspelled as 'tests'
|
|
--> $DIR/cfg_features.rs:25:15
|
|
|
|
|
LL | #[cfg(all(tests, Test))]
|
|
| ^^^^^ help: did you mean: `test`
|
|
|
|
error: 'test' may be misspelled as 'Test'
|
|
--> $DIR/cfg_features.rs:25:22
|
|
|
|
|
LL | #[cfg(all(tests, Test))]
|
|
| ^^^^ help: did you mean: `test`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|