]> git.lizzy.rs Git - rust.git/commit
auto merge of #20167 : michaelwoerister/rust/for-loop-var, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 25 Dec 2014 14:21:47 +0000 (14:21 +0000)
committerbors <bors@rust-lang.org>
Thu, 25 Dec 2014 14:21:47 +0000 (14:21 +0000)
commitf673e9841f58a2196efd3b757804efa2575f8b79
treeddc92fbfca99d63685e99b9a53c350aa3121f373
parentead198c5133fd649d1e385cfc46f344a2baaef8b
parent875a30c492b0eaa745f88db4d4c14887a6dd6ae0
auto merge of #20167 : michaelwoerister/rust/for-loop-var, r=alexcrichton

... really this time `:)`

I went for the simpler fix after all since it turned out to become a bit too complicated to extract the current iteration value from its containing `Option` with the different memory layouts it can have. It's also what we already do for match bindings.

I also extended the new test case to include the "simple identifier" case.

Fixes #20127, fixes #19732
src/librustc_trans/trans/debuginfo.rs