rust/src/librustc/mir
bors 6e03608209 Auto merge of #33030 - nagisa:mir-unrequire-end-block, r=nikomatsakis
MIR: Do not require END_BLOCK to always exist

Basically, all this does, is removing restriction for END_BLOCK to exist past the first invocation of RemoveDeadBlocks pass. This way for functions whose CFG does not reach the `END_BLOCK` end up not containing the block.

As far as the implementation goes, I’m not entirely satisfied with the `BasicBlock::end_block`. I had hoped to make `new` a `const fn` and then just have a `const END_BLOCK` private to mir::build, but it turns out that constant functions don’t yet support conditionals nor a way to assert.
2016-04-20 21:25:26 -07:00
..
mir_map.rs Add Pass manager for MIR 2016-03-04 15:20:10 +02:00
repr.rs Auto merge of #33030 - nagisa:mir-unrequire-end-block, r=nikomatsakis 2016-04-20 21:25:26 -07:00
tcx.rs rustc: move rustc_front to rustc::hir. 2016-04-06 09:01:55 +03:00
transform.rs rustc: move cfg, infer, traits and ty from middle to top-level. 2016-03-27 01:05:54 +02:00
visit.rs debuginfo: argument and upvar names for MIR. 2016-04-16 21:51:26 +03:00