Issue #5275 was closed, but there still was a FIXME for it.
This commit is contained in:
Piotr Jawniak 2014-06-18 11:40:41 +02:00 committed by Alex Crichton
parent b0dff7a191
commit bde851e969

View File

@ -701,16 +701,11 @@ impl<'a> Liveness<'a> {
if self.loop_scope.len() == 0 { if self.loop_scope.len() == 0 {
self.ir.tcx.sess.span_bug(sp, "break outside loop"); self.ir.tcx.sess.span_bug(sp, "break outside loop");
} else { } else {
// FIXME(#5275): this shouldn't have to be a method...
self.last_loop_scope()
}
}
}
}
fn last_loop_scope(&self) -> NodeId {
*self.loop_scope.last().unwrap() *self.loop_scope.last().unwrap()
} }
}
}
}
#[allow(unused_must_use)] #[allow(unused_must_use)]
fn ln_str(&self, ln: LiveNode) -> String { fn ln_str(&self, ln: LiveNode) -> String {