@@ -20,7 +20,7 @@ use rustc::mir::{
2020 ConstraintCategory , Local , Location ,
2121} ;
2222use rustc:: ty:: { self , subst:: SubstsRef , RegionVid , Ty , TyCtxt , TypeFoldable } ;
23- use rustc:: util:: common:: { self , ErrorReported } ;
23+ use rustc:: util:: common:: ErrorReported ;
2424use rustc_data_structures:: binary_search_util;
2525use rustc_data_structures:: bit_set:: BitSet ;
2626use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
@@ -468,22 +468,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
468468 upvars : & [ Upvar ] ,
469469 mir_def_id : DefId ,
470470 errors_buffer : & mut Vec < Diagnostic > ,
471- ) -> Option < ClosureRegionRequirements < ' tcx > > {
472- common:: time_ext (
473- infcx. tcx . sess . time_extended ( ) ,
474- Some ( infcx. tcx . sess ) ,
475- & format ! ( "solve_nll_region_constraints({:?})" , mir_def_id) ,
476- || self . solve_inner ( infcx, body, upvars, mir_def_id, errors_buffer) ,
477- )
478- }
479-
480- fn solve_inner (
481- & mut self ,
482- infcx : & InferCtxt < ' _ , ' tcx > ,
483- body : & Body < ' tcx > ,
484- upvars : & [ Upvar ] ,
485- mir_def_id : DefId ,
486- errors_buffer : & mut Vec < Diagnostic > ,
487471 ) -> Option < ClosureRegionRequirements < ' tcx > > {
488472 self . propagate_constraints ( body) ;
489473
0 commit comments