Do not emit "incorrect close delimiter" twice in the same place

This commit is contained in:
Esteban Küber 2018-08-15 14:26:03 -07:00
parent 2a74d7924a
commit 1b5e29ae6f
4 changed files with 20 additions and 22 deletions

View file

@ -15,4 +15,3 @@ fn main() {
//~^ ERROR: expected expression, found `;`
}
//~^ ERROR: incorrect close delimiter: `}`
//~| ERROR: incorrect close delimiter: `}`

View file

@ -7,20 +7,11 @@ LL | //~^ ERROR: expected expression, found `;`
LL | }
| ^ incorrect close delimiter
error: incorrect close delimiter: `}`
--> $DIR/token-error-correct.rs:16:1
|
LL | foo(bar(;
| - unclosed delimiter
LL | //~^ ERROR: expected expression, found `;`
LL | }
| ^ incorrect close delimiter
error: expected expression, found `;`
--> $DIR/token-error-correct.rs:14:13
|
LL | foo(bar(;
| ^ expected expression
error: aborting due to 3 previous errors
error: aborting due to 2 previous errors