mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
09f18f61c6
A lot of cases of the "noise" cases of `similar_names` come from two idents with a different first letter, which is easy enough to differentiate visually but causes this lint to be raised. Do not raise the lint in these cases, as long as the first character does not have a lookalike. Link: https://github.com/rust-lang/rust-clippy/issues/10926
64 lines
1.5 KiB
Text
64 lines
1.5 KiB
Text
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:47:9
|
|
|
|
|
LL | let bluby: i32;
|
|
| ^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:46:9
|
|
|
|
|
LL | let blubx: i32;
|
|
| ^^^^^
|
|
= note: `-D clippy::similar-names` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::similar_names)]`
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:52:9
|
|
|
|
|
LL | let coke: i32;
|
|
| ^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:50:9
|
|
|
|
|
LL | let cake: i32;
|
|
| ^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:71:9
|
|
|
|
|
LL | let xyzeabc: i32;
|
|
| ^^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:69:9
|
|
|
|
|
LL | let xyz1abc: i32;
|
|
| ^^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:76:9
|
|
|
|
|
LL | let parsee: i32;
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:74:9
|
|
|
|
|
LL | let parser: i32;
|
|
| ^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:98:16
|
|
|
|
|
LL | bpple: sprang,
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:97:16
|
|
|
|
|
LL | apple: spring,
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|