rust/src/librustc/hir
bors ab5bec2553 Auto merge of #42634 - Zoxc:for-desugar2, r=nikomatsakis
Change the for-loop desugar so the `break` does not affect type inference. Fixes #42618

Rewrite the `for` loop desugaring to avoid contaminating the inference results. Under the older desugaring, `for x in vec![] { .. }` would erroneously type-check, even though the type of `vec![]` is unconstrained. (written by @nikomatsakis)
2017-06-22 15:24:58 +00:00
..
map incr.comp.: Don't use Ident in DefPath because that's unstable across compilation sessions. 2017-06-13 13:47:13 +02:00
check_attr.rs Add docs to librustc/hir/check_attr.rs 2017-06-13 18:32:39 +02:00
def.rs Update def.rs 2017-06-04 18:15:19 +02:00
def_id.rs Switch CrateNum queries to DefId 2017-06-14 22:49:07 -07:00
intravisit.rs rustc: treat const bodies like fn bodies in middle::region. 2017-05-06 18:35:43 +03:00
itemlikevisit.rs kill the old visit_all_item_likes infrastructure 2017-05-03 16:42:07 -04:00
lowering.rs Auto merge of #42634 - Zoxc:for-desugar2, r=nikomatsakis 2017-06-22 15:24:58 +00:00
mod.rs Change for-loop desugar to not borrow the iterator during the loop 2017-06-01 18:33:47 +02:00
pat_util.rs rustc: embed path resolutions into the HIR instead of keeping DefMap. 2016-11-28 04:18:10 +02:00
print.rs support default impl for specialization 2017-04-24 10:08:48 +00:00
svh.rs incr.comp.: Hash more pieces of crate metadata to detect changes there. 2017-05-08 12:31:26 +02:00