about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-12-05 10:07:36 -0800
committerCorey Richardson <corey@octayn.net>2014-12-05 10:07:36 -0800
commitfdb395626bc1180e1b643e43e8b9344c43fa6c0f (patch)
treea90040ec326270d8a4e613d0b29e983462df80ee /src/rustllvm/RustWrapper.cpp
parent13befdff912250155cb5455ecce8291b162eae6b (diff)
parent108bca53f04342a4626b34ac1d5b8236d170a12a (diff)
downloadrust-fdb395626bc1180e1b643e43e8b9344c43fa6c0f.tar.gz
rust-fdb395626bc1180e1b643e43e8b9344c43fa6c0f.zip
rollup merge of #19494: P1start/better-expected
As an example of what this changes, the following code:

```rust
let x: [int ..4];
```

Currently spits out ‘expected `]`, found `..`’. However, a comma would also be valid there, as would a number of other tokens. This change adjusts the parser to produce more accurate errors, so that that example now produces ‘expected one of `(`, `+`, `,`, `::`, or `]`, found `..`’.

(Thanks to cramer on IRC for pointing out this problem with diagnostics.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions