@@ -20,7 +20,7 @@ use rustc::mir::{
20
20
ConstraintCategory , Local , Location ,
21
21
} ;
22
22
use rustc:: ty:: { self , subst:: SubstsRef , RegionVid , Ty , TyCtxt , TypeFoldable } ;
23
- use rustc:: util:: common:: { self , ErrorReported } ;
23
+ use rustc:: util:: common:: ErrorReported ;
24
24
use rustc_data_structures:: binary_search_util;
25
25
use rustc_data_structures:: bit_set:: BitSet ;
26
26
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
@@ -468,22 +468,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
468
468
upvars : & [ Upvar ] ,
469
469
mir_def_id : DefId ,
470
470
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 > ,
487
471
) -> Option < ClosureRegionRequirements < ' tcx > > {
488
472
self . propagate_constraints ( body) ;
489
473
0 commit comments