about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-08-27 09:31:14 +0530
committerGitHub <noreply@github.com>2016-08-27 09:31:14 +0530
commit1385feb5eecd50c31d97229ffe3d751050d89733 (patch)
tree1e61e36ee7e33c562efe03d1d379b7b54b0c9651 /src/test/incremental/thinlto
parentb5969ca31825377ac5ac0fa8236f25d968a8caf6 (diff)
parent72d629caa50fa482dd4165cb43b9fb02ac24c8d8 (diff)
downloadrust-1385feb5eecd50c31d97229ffe3d751050d89733.tar.gz
rust-1385feb5eecd50c31d97229ffe3d751050d89733.zip
Rollup merge of #35953 - Aatch:better-missing-block-error, r=nrc
Improve error message when failing to parse a block

We want to catch this error:

```
if (foo)
    bar;
```

as it's valid syntax in other languages, and say how to fix it.
Unfortunately it didn't care if the suggestion made sense and just
highlighted the unexpected token.

Now it attempts to parse a statement, and if it succeeds, it shows the
help message.

Fixes #35907
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions