mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 19:43:20 +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.
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:28:9
|
|
|
|
|
LL | let _1 = 1; //~ERROR Consider a more descriptive name
|
|
| ^^
|
|
|
|
|
= note: `-D clippy::just-underscores-and-digits` implied by `-D warnings`
|
|
|
|
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:29:9
|
|
|
|
|
LL | let ____1 = 1; //~ERROR Consider a more descriptive name
|
|
| ^^^^^
|
|
|
|
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:30:9
|
|
|
|
|
LL | let __1___2 = 12; //~ERROR Consider a more descriptive name
|
|
| ^^^^^^^
|
|
|
|
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:51:13
|
|
|
|
|
LL | let _1 = 1;
|
|
| ^^
|
|
|
|
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:52:13
|
|
|
|
|
LL | let ____1 = 1;
|
|
| ^^^^^
|
|
|
|
error: consider choosing a more descriptive name
|
|
--> $DIR/non_expressive_names.rs:53:13
|
|
|
|
|
LL | let __1___2 = 12;
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|