about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-12-03 22:47:53 +1300
committerP1start <rewi-github@whanau.org>2014-12-04 13:47:35 +1300
commit108bca53f04342a4626b34ac1d5b8236d170a12a (patch)
treeaae9d6fe5650fbe061c011e6f77e8d386627cb69 /src/rustllvm/RustWrapper.cpp
parent3a325c666d2cb7e297bf3057ff2442f96a79428b (diff)
downloadrust-108bca53f04342a4626b34ac1d5b8236d170a12a.tar.gz
rust-108bca53f04342a4626b34ac1d5b8236d170a12a.zip
Make the parser’s ‘expected <foo>, found <bar>’ errors more accurate
As an example of what this changes, the following code:

    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 `..`’.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions