From bde851e969d327397ac1ab4bca05692069ff62a5 Mon Sep 17 00:00:00 2001 From: Piotr Jawniak Date: Wed, 18 Jun 2014 11:40:41 +0200 Subject: [PATCH] Fix FIXME #5275 Issue #5275 was closed, but there still was a FIXME for it. --- src/librustc/middle/liveness.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/librustc/middle/liveness.rs b/src/librustc/middle/liveness.rs index cd876113807..8cd840582ba 100644 --- a/src/librustc/middle/liveness.rs +++ b/src/librustc/middle/liveness.rs @@ -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();