Skip to content

Commit 40b42e0

Browse files
Sawyer47alexcrichton
authored andcommitted
---
yaml --- r: 118747 b: refs/heads/snap-stage3 c: bde851e h: refs/heads/master i: 118745: 74371f6 118743: b195988 v: v3
1 parent 848ee49 commit 40b42e0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: b1646cbfd908dc948b251e362669af421100647a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b0dff7a19142b7d52d80ed62a14c1a6cb07cb647
4+
refs/heads/snap-stage3: bde851e969d327397ac1ab4bca05692069ff62a5
55
refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/liveness.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,17 +701,12 @@ impl<'a> Liveness<'a> {
701701
if self.loop_scope.len() == 0 {
702702
self.ir.tcx.sess.span_bug(sp, "break outside loop");
703703
} else {
704-
// FIXME(#5275): this shouldn't have to be a method...
705-
self.last_loop_scope()
704+
*self.loop_scope.last().unwrap()
706705
}
707706
}
708707
}
709708
}
710709

711-
fn last_loop_scope(&self) -> NodeId {
712-
*self.loop_scope.last().unwrap()
713-
}
714-
715710
#[allow(unused_must_use)]
716711
fn ln_str(&self, ln: LiveNode) -> String {
717712
let mut wr = io::MemWriter::new();

0 commit comments

Comments
 (0)