]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/matches/mod.rs
Preparing for merge from rustc
[rust.git] / compiler / rustc_mir_build / src / build / matches / mod.rs
index 691cbee2c731911acf2997bea4754b5d54c9ee16..7edcd46a34f293a542e1f2df59bc6f55f07a7bce 100644 (file)
@@ -30,7 +30,6 @@
 mod util;
 
 use std::borrow::Borrow;
-use std::convert::TryFrom;
 use std::mem;
 
 impl<'a, 'tcx> Builder<'a, 'tcx> {
@@ -95,7 +94,7 @@ pub(crate) fn then_else_break(
 
                 let then_block = this.cfg.start_new_block();
                 let else_block = this.cfg.start_new_block();
-                let term = TerminatorKind::if_(this.tcx, operand, then_block, else_block);
+                let term = TerminatorKind::if_(operand, then_block, else_block);
 
                 let source_info = this.source_info(expr_span);
                 this.cfg.terminate(block, source_info, term);