Fix FIXME #5275
Issue #5275 was closed, but there still was a FIXME for it.
This commit is contained in:
parent
b0dff7a191
commit
bde851e969
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user