mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-13 00:17:13 +00:00
ac9dd36856
The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors.
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:20:9
|
|
|
|
|
LL | let bpple: i32;
|
|
| ^^^^^
|
|
|
|
|
= note: `-D clippy::similar-names` implied by `-D warnings`
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:18:9
|
|
|
|
|
LL | let apple: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:22:9
|
|
|
|
|
LL | let cpple: i32;
|
|
| ^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:18:9
|
|
|
|
|
LL | let apple: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:46:9
|
|
|
|
|
LL | let bluby: i32;
|
|
| ^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:45:9
|
|
|
|
|
LL | let blubx: i32;
|
|
| ^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:50:9
|
|
|
|
|
LL | let coke: i32;
|
|
| ^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:48:9
|
|
|
|
|
LL | let cake: i32;
|
|
| ^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:68:9
|
|
|
|
|
LL | let xyzeabc: i32;
|
|
| ^^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:66:9
|
|
|
|
|
LL | let xyz1abc: i32;
|
|
| ^^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:72:9
|
|
|
|
|
LL | let parsee: i32;
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:70:9
|
|
|
|
|
LL | let parser: i32;
|
|
| ^^^^^^
|
|
|
|
error: binding's name is too similar to existing binding
|
|
--> $DIR/similar_names.rs:93:16
|
|
|
|
|
LL | bpple: sprang,
|
|
| ^^^^^^
|
|
|
|
|
note: existing binding defined here
|
|
--> $DIR/similar_names.rs:92:16
|
|
|
|
|
LL | apple: spring,
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 7 previous errors
|
|
|