]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #27253 - bossmc:unbalanced-delimiters-cause-ice, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 25 Jul 2015 11:20:15 +0000 (11:20 +0000)
committerbors <bors@rust-lang.org>
Sat, 25 Jul 2015 11:20:15 +0000 (11:20 +0000)
This introduces a test for #23389 and improves the error behaviour to treat the malformed LHS as an error, not a compiler bug.

The parse phase that precedes the call to `check_lhs_nt_follows` could possibly be enhanced to police the format itself (which the old code suggests was the original intention), but I'm not sure that's any nicer than just parsing the matcher as generic rust code and then policing the specific requirements for being a macro matcher afterwards (as this does).

Fixes #23389


Trivial merge