Skip to content

Commit f487715

Browse files
committed
Fix FIXME rust-lang#5275
Issue rust-lang#5275 was closed, but there still was a FIXME for it.
1 parent 410d70b commit f487715

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustc/middle/liveness.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,17 +701,12 @@ impl<'a> Liveness<'a> {
701701
if self.loop_scope.len() == 0 {
702702
self.ir.tcx.sess.span_bug(sp, "break outside loop");
703703
} else {
704-
// FIXME(#5275): this shouldn't have to be a method...
705-
self.last_loop_scope()
704+
*self.loop_scope.last().unwrap()
706705
}
707706
}
708707
}
709708
}
710709

711-
fn last_loop_scope(&self) -> NodeId {
712-
*self.loop_scope.last().unwrap()
713-
}
714-
715710
#[allow(unused_must_use)]
716711
fn ln_str(&self, ln: LiveNode) -> String {
717712
let mut wr = io::MemWriter::new();

0 commit comments

Comments
 (0)