Skip to content

Commit

Permalink
Fix FIXME rust-lang#5275
Browse files Browse the repository at this point in the history
Issue rust-lang#5275 was closed, but there still was a FIXME for it.
  • Loading branch information
Sawyer47 committed Jun 18, 2014
1 parent 410d70b commit f487715
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/librustc/middle/liveness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,17 +701,12 @@ impl<'a> Liveness<'a> {
if self.loop_scope.len() == 0 {
self.ir.tcx.sess.span_bug(sp, "break outside loop");
} else {
// FIXME(#5275): this shouldn't have to be a method...
self.last_loop_scope()
*self.loop_scope.last().unwrap()
}
}
}
}

fn last_loop_scope(&self) -> NodeId {
*self.loop_scope.last().unwrap()
}

#[allow(unused_must_use)]
fn ln_str(&self, ln: LiveNode) -> String {
let mut wr = io::MemWriter::new();
Expand Down

1 comment on commit f487715

@huonw
Copy link

@huonw huonw commented on f487715 Jun 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.