]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33311 - birkenfeld:issue33262, r=nrc
authorbors <bors@rust-lang.org>
Sat, 7 May 2016 05:39:43 +0000 (22:39 -0700)
committerbors <bors@rust-lang.org>
Sat, 7 May 2016 05:39:43 +0000 (22:39 -0700)
parser: fix suppression of syntax errors in range RHS

Invalid expressions on the RHS were just swallowed without generating an error.  The new version more closely mirrors the code for parsing `..x` in the `parse_prefix_range_expr` method below, where no cancel is done either.

Fixes #33262.

1  2 
src/libsyntax/parse/parser.rs

Simple merge