]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/trans/common.rs
rollup merge of #21830: japaric/for-cleanup
[rust.git] / src / librustc_trans / trans / common.rs
index b599f3a779bb596527a0032723d6034dabeb27d4..b65d50095b3f09c0397ff10757d884a5d978dd42 100644 (file)
@@ -515,7 +515,7 @@ pub fn join_blocks(&'a self,
                        -> Block<'a, 'tcx> {
         let out = self.new_id_block("join", id);
         let mut reachable = false;
-        for bcx in in_cxs.iter() {
+        for bcx in in_cxs {
             if !bcx.unreachable.get() {
                 build::Br(*bcx, out.llbb, DebugLoc::None);
                 reachable = true;