]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14444 : huonw/rust/nice-for-errors, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 27 May 2014 21:36:40 +0000 (14:36 -0700)
committerbors <bors@rust-lang.org>
Tue, 27 May 2014 21:36:40 +0000 (14:36 -0700)
Change `for` desugaring & make refutable pattern errors more precise

This changes for to desugar to the `let`-based pattern match as described in #14390, and adjusts the compiler to use this information for error messages that even mention that it's in a `for` loop.

Also, it makes the compiler record the exact positions of refutable parts of a pattern, to point to exactly them in error messages.


Trivial merge