From: bors Date: Sat, 5 Apr 2014 11:41:33 +0000 (-0700) Subject: auto merge of #13330 : huonw/rust/loop-error, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e7148592adde0b09d7bf34426e215c6c25fc7cd1;p=rust.git auto merge of #13330 : huonw/rust/loop-error, r=alexcrichton rustc: move the check_loop pass earlier. This pass is purely AST based, and by running it earlier we emit more useful error messages, e.g. type inference fails in the case of `let r = break;` with few constraints on `r`, but it's more useful to be told that the `break` is outside the loop (rather than a type error) when it is. Closes #13292. --- e7148592adde0b09d7bf34426e215c6c25fc7cd1