Don't bother to save a block
This commit is contained in:
parent
4316d0c625
commit
c00b38e9fb
16 changed files with 425 additions and 313 deletions
|
@ -1226,10 +1226,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
if let Some(last_otherwise_block) = otherwise_block {
|
||||
last_otherwise_block
|
||||
} else {
|
||||
// Any remaining candidates are unreachable.
|
||||
if unmatched_candidates.is_empty() {
|
||||
return;
|
||||
}
|
||||
self.cfg.start_new_block()
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue