2020-12-19 12:54:38 +00:00
|
|
|
error: this looks like an `else {..}` but the `else` is missing
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:11:6
|
|
|
|
|
|
|
|
|
LL | } {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suspicious-else-formatting` implied by `-D warnings`
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the next block
|
|
|
|
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:15:6
|
|
|
|
|
|
|
|
|
LL | } if foo() {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:22:10
|
|
|
|
|
|
|
|
|
LL | } if foo() {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:30:10
|
|
|
|
|
|
|
|
|
LL | } if foo() {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
|
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:39:6
|
|
|
|
|
|
|
|
|
LL | } else
|
|
|
|
| ______^
|
|
|
|
LL | | {
|
|
|
|
| |____^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
error: this is an `else if` but the formatting might hide it
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:51:6
|
2020-12-19 12:54:38 +00:00
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | } else
|
2020-12-19 12:54:38 +00:00
|
|
|
| ______^
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | | if foo() { // the span of the above error should continue here
|
2020-12-19 12:54:38 +00:00
|
|
|
| |____^
|
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
|
2020-12-19 12:54:38 +00:00
|
|
|
|
|
|
|
error: this is an `else if` but the formatting might hide it
|
2021-04-15 15:49:45 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:56:6
|
2020-12-19 12:54:38 +00:00
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | }
|
2020-12-19 12:54:38 +00:00
|
|
|
| ______^
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | | else
|
2020-12-19 12:54:38 +00:00
|
|
|
LL | | if foo() { // the span of the above error should continue here
|
|
|
|
| |____^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:83:6
|
2020-12-19 12:54:38 +00:00
|
|
|
|
|
|
|
|
LL | }
|
|
|
|
| ______^
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | |
|
2020-12-19 12:54:38 +00:00
|
|
|
LL | | else
|
2021-04-15 15:49:45 +00:00
|
|
|
LL | | {
|
2020-12-19 12:54:38 +00:00
|
|
|
| |____^
|
|
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
|
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
|
|
--> $DIR/suspicious_else_formatting.rs:91:6
|
|
|
|
|
|
|
|
|
LL | }
|
|
|
|
| ______^
|
|
|
|
LL | | else
|
|
|
|
LL | |
|
|
|
|
LL | | {
|
|
|
|
| |____^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
2020-12-19 12:54:38 +00:00
|
|
|
|
2021-04-15 15:49:45 +00:00
|
|
|
error: aborting due to 9 previous errors
|
2020-12-19 12:54:38 +00:00
|
|
|
|