diff options
| author | bors <bors@rust-lang.org> | 2016-04-20 21:25:26 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-20 21:25:26 -0700 |
| commit | 6e036082091bc253debeb22606a661af211610ff (patch) | |
| tree | 81ecef8d15aa1b65669915b82d65b14f80cff4d7 /src/libsyntax/errors | |
| parent | 95545e7adcf1715eff2a31a53fe25ce2b012e62b (diff) | |
| parent | d1180afbd99d533802f57f8c1fbf8c2723831ef2 (diff) | |
| download | rust-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
