@@ -41,37 +41,50 @@ LL | | {
41
41
|
42
42
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
43
43
44
- error: this is an `else {..} ` but the formatting might hide it
45
- --> $DIR/suspicious_else_formatting.rs:44 :6
44
+ error: this is an `else if ` but the formatting might hide it
45
+ --> $DIR/suspicious_else_formatting.rs:51 :6
46
46
|
47
- LL | }
47
+ LL | } else
48
48
| ______^
49
- LL | | else
50
- LL | | {
49
+ LL | | if foo() { // the span of the above error should continue here
51
50
| |____^
52
51
|
53
- = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..} `
52
+ = note: to remove this lint, remove the `else` or remove the new line between `else` and `if `
54
53
55
54
error: this is an `else if` but the formatting might hide it
56
- --> $DIR/suspicious_else_formatting.rs:50 :6
55
+ --> $DIR/suspicious_else_formatting.rs:56 :6
57
56
|
58
- LL | } else
57
+ LL | }
59
58
| ______^
59
+ LL | | else
60
60
LL | | if foo() { // the span of the above error should continue here
61
61
| |____^
62
62
|
63
63
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
64
64
65
- error: this is an `else if ` but the formatting might hide it
66
- --> $DIR/suspicious_else_formatting.rs:55 :6
65
+ error: this is an `else {..} ` but the formatting might hide it
66
+ --> $DIR/suspicious_else_formatting.rs:83 :6
67
67
|
68
68
LL | }
69
69
| ______^
70
+ LL | |
70
71
LL | | else
71
- LL | | if foo() { // the span of the above error should continue here
72
+ LL | | {
72
73
| |____^
73
74
|
74
- = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
75
+ = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
76
+
77
+ error: this is an `else {..}` but the formatting might hide it
78
+ --> $DIR/suspicious_else_formatting.rs:91:6
79
+ |
80
+ LL | }
81
+ | ______^
82
+ LL | | else
83
+ LL | |
84
+ LL | | {
85
+ | |____^
86
+ |
87
+ = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
75
88
76
- error: aborting due to 8 previous errors
89
+ error: aborting due to 9 previous errors
77
90
0 commit comments