@@ -41,37 +41,50 @@ LL | |     {
4141   |
4242   = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
4343
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
4646   |
47- LL |       }
47+ LL |       } else 
4848   |  ______^
49- LL | |     else
50- LL | |     {
49+ LL | |     if foo() { // the span of the above error should continue here
5150   | |____^
5251   |
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 `
5453
5554error: 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
5756   |
58- LL |       } else 
57+ LL |       }
5958   |  ______^
59+ LL | |     else
6060LL | |     if foo() { // the span of the above error should continue here
6161   | |____^
6262   |
6363   = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
6464
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
6767   |
6868LL |       }
6969   |  ______^
70+ LL | |
7071LL | |     else
71- LL | |     if foo() { // the span of the above error should continue here 
72+ LL | |     { 
7273   | |____^
7374   |
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 `{..}`
7588
76- error: aborting due to 8  previous errors
89+ error: aborting due to 9  previous errors
7790
0 commit comments