diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-08-27 09:31:14 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-27 09:31:14 +0530 |
| commit | 1385feb5eecd50c31d97229ffe3d751050d89733 (patch) | |
| tree | 1e61e36ee7e33c562efe03d1d379b7b54b0c9651 /src/test/incremental/thinlto | |
| parent | b5969ca31825377ac5ac0fa8236f25d968a8caf6 (diff) | |
| parent | 72d629caa50fa482dd4165cb43b9fb02ac24c8d8 (diff) | |
| download | rust-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
