@@ -89,7 +89,7 @@ should go to.
8989
9090use build:: { BlockAnd , BlockAndExtension , Builder , CFG } ;
9191use rustc:: middle:: region:: CodeExtent ;
92- use rustc:: ty:: { Ty , TyCtxt } ;
92+ use rustc:: ty:: Ty ;
9393use rustc:: mir:: * ;
9494use rustc:: mir:: transform:: MirSource ;
9595use syntax_pos:: { Span } ;
@@ -572,7 +572,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
572572 }
573573 assert ! ( !self . scopes. is_empty( ) ) ; // or `any` above would be false
574574
575- let Builder { ref mut hir , ref mut cfg, ref mut scopes,
575+ let Builder { ref mut cfg, ref mut scopes,
576576 ref mut cached_resume_block, .. } = * self ;
577577
578578 // Build up the drops in **reverse** order. The end result will
@@ -599,8 +599,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
599599 } ;
600600
601601 for scope in scopes. iter_mut ( ) {
602- target = build_diverge_scope (
603- hir. tcx ( ) , cfg, scope. extent_span , scope, target) ;
602+ target = build_diverge_scope ( cfg, scope. extent_span , scope, target) ;
604603 }
605604 Some ( target)
606605 }
@@ -726,8 +725,7 @@ fn build_scope_drops<'tcx>(cfg: &mut CFG<'tcx>,
726725 block. unit ( )
727726}
728727
729- fn build_diverge_scope < ' a , ' gcx , ' tcx > ( _tcx : TyCtxt < ' a , ' gcx , ' tcx > ,
730- cfg : & mut CFG < ' tcx > ,
728+ fn build_diverge_scope < ' a , ' gcx , ' tcx > ( cfg : & mut CFG < ' tcx > ,
731729 span : Span ,
732730 scope : & mut Scope < ' tcx > ,
733731 mut target : BasicBlock )
0 commit comments