2020-12-20 16:19:49 +00:00
|
|
|
error: this looks like an `else {..}` but the `else` is missing
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:22:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | } {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the next block
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::suspicious-else-formatting` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_else_formatting)]`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:26:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
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
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:33:10
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
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
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:41:10
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
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
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:50:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | } else
|
|
|
|
| ______^
|
|
|
|
LL | | {
|
|
|
|
| |____^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: this is an `else if` but the formatting might hide it
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:62:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | } else
|
2020-12-20 16:19:49 +00:00
|
|
|
| ______^
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | | if foo() { // the span of the above error should continue here
|
2020-12-20 16:19:49 +00:00
|
|
|
| |____^
|
|
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: this is an `else if` but the formatting might hide it
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:67:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | }
|
2020-12-20 16:19:49 +00:00
|
|
|
| ______^
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | | else
|
2020-12-20 16:19:49 +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-22 09:31:13 +00:00
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:94:6
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | }
|
|
|
|
| ______^
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | |
|
2020-12-20 16:19:49 +00:00
|
|
|
LL | | else
|
2021-04-22 09:31:13 +00:00
|
|
|
LL | | {
|
2020-12-20 16:19:49 +00:00
|
|
|
| |____^
|
|
|
|
|
|
2021-04-22 09:31:13 +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
|
2023-07-02 12:35:19 +00:00
|
|
|
--> $DIR/suspicious_else_formatting.rs:102:6
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | }
|
|
|
|
| ______^
|
|
|
|
LL | | else
|
|
|
|
LL | |
|
|
|
|
LL | | {
|
|
|
|
| |____^
|
|
|
|
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: aborting due to 9 previous errors
|
2020-12-20 16:19:49 +00:00
|
|
|
|