about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-20 21:25:26 -0700
committerbors <bors@rust-lang.org>2016-04-20 21:25:26 -0700
commit6e036082091bc253debeb22606a661af211610ff (patch)
tree81ecef8d15aa1b65669915b82d65b14f80cff4d7 /src/libsyntax/errors
parent95545e7adcf1715eff2a31a53fe25ce2b012e62b (diff)
parentd1180afbd99d533802f57f8c1fbf8c2723831ef2 (diff)
downloadrust-6e036082091bc253debeb22606a661af211610ff.tar.gz
rust-6e036082091bc253debeb22606a661af211610ff.zip
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.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions