@@ -30,8 +30,6 @@ use rustc_middle::ty::{
3030 TypeVisitableExt , UserArgs , UserTypeAnnotationIndex , fold_regions,
3131} ;
3232use rustc_middle:: { bug, span_bug} ;
33- use rustc_mir_dataflow:: ResultsCursor ;
34- use rustc_mir_dataflow:: impls:: MaybeInitializedPlaces ;
3533use rustc_mir_dataflow:: move_paths:: MoveData ;
3634use rustc_mir_dataflow:: points:: DenseLocationMap ;
3735use rustc_span:: def_id:: CRATE_DEF_ID ;
@@ -97,10 +95,9 @@ mod relate_tys;
9795/// - `location_table` -- for datalog polonius, the map between `Location`s and `RichLocation`s
9896/// - `borrow_set` -- information about borrows occurring in `body`
9997/// - `polonius_facts` -- when using Polonius, this is the generated set of Polonius facts
100- /// - `flow_inits` -- results of a maybe-init dataflow analysis
10198/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysis
10299/// - `location_map` -- map between MIR `Location` and `PointIndex`
103- pub ( crate ) fn type_check < ' a , ' tcx > (
100+ pub ( crate ) fn type_check < ' tcx > (
104101 root_cx : & mut BorrowCheckRootCtxt < ' tcx > ,
105102 infcx : & BorrowckInferCtxt < ' tcx > ,
106103 body : & Body < ' tcx > ,
@@ -109,7 +106,6 @@ pub(crate) fn type_check<'a, 'tcx>(
109106 location_table : & PoloniusLocationTable ,
110107 borrow_set : & BorrowSet < ' tcx > ,
111108 polonius_facts : & mut Option < PoloniusFacts > ,
112- flow_inits : ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
113109 move_data : & MoveData < ' tcx > ,
114110 location_map : Rc < DenseLocationMap > ,
115111) -> MirTypeckResults < ' tcx > {
@@ -167,7 +163,7 @@ pub(crate) fn type_check<'a, 'tcx>(
167163 typeck. equate_inputs_and_outputs ( & normalized_inputs_and_output) ;
168164 typeck. check_signature_annotation ( ) ;
169165
170- liveness:: generate ( & mut typeck, & location_map, flow_inits , move_data) ;
166+ liveness:: generate ( & mut typeck, & location_map, move_data) ;
171167
172168 let opaque_type_values =
173169 opaque_types:: take_opaques_and_register_member_constraints ( & mut typeck) ;
0 commit comments