We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410d70b commit f487715Copy full SHA for f487715
src/librustc/middle/liveness.rs
@@ -701,17 +701,12 @@ impl<'a> Liveness<'a> {
701
if self.loop_scope.len() == 0 {
702
self.ir.tcx.sess.span_bug(sp, "break outside loop");
703
} else {
704
- // FIXME(#5275): this shouldn't have to be a method...
705
- self.last_loop_scope()
+ *self.loop_scope.last().unwrap()
706
}
707
708
709
710
711
- fn last_loop_scope(&self) -> NodeId {
712
- *self.loop_scope.last().unwrap()
713
- }
714
-
715
#[allow(unused_must_use)]
716
fn ln_str(&self, ln: LiveNode) -> String {
717
let mut wr = io::MemWriter::new();
0 commit comments