mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-17 10:18:20 +00:00
e8f57c3ac4
changelog: [`similar_names`] lint no longer suggests to insert or add an underscore to "fix" too similar names
87 lines
1.9 KiB
Text
87 lines
1.9 KiB
Text
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:15:9
|
|
|
|
|
LL | let bpple: i32;
|
|
| ^^^^^
|
|
|
|
|
= note: `-D clippy::similar-names` implied by `-D warnings`
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:13:9
|
|
|
|
|
LL | let apple: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:17:9
|
|
|
|
|
LL | let cpple: i32;
|
|
| ^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:13:9
|
|
|
|
|
LL | let apple: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:41:9
|
|
|
|
|
LL | let bluby: i32;
|
|
| ^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:40:9
|
|
|
|
|
LL | let blubx: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:45:9
|
|
|
|
|
LL | let coke: i32;
|
|
| ^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:43:9
|
|
|
|
|
LL | let cake: i32;
|
|
| ^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:63:9
|
|
|
|
|
LL | let xyzeabc: i32;
|
|
| ^^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:61:9
|
|
|
|
|
LL | let xyz1abc: i32;
|
|
| ^^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:67:9
|
|
|
|
|
LL | let parsee: i32;
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:65:9
|
|
|
|
|
LL | let parser: i32;
|
|
| ^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:85:16
|
|
|
|
|
LL | bpple: sprang,
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:84:16
|
|
|
|
|
LL | apple: spring,
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 7 previous errors
|
|
|