@@ -30,8 +30,6 @@ use rustc_middle::ty::{
30
30
TypeVisitableExt , UserArgs , UserTypeAnnotationIndex , fold_regions,
31
31
} ;
32
32
use rustc_middle:: { bug, span_bug} ;
33
- use rustc_mir_dataflow:: ResultsCursor ;
34
- use rustc_mir_dataflow:: impls:: MaybeInitializedPlaces ;
35
33
use rustc_mir_dataflow:: move_paths:: MoveData ;
36
34
use rustc_mir_dataflow:: points:: DenseLocationMap ;
37
35
use rustc_span:: def_id:: CRATE_DEF_ID ;
@@ -97,10 +95,9 @@ mod relate_tys;
97
95
/// - `location_table` -- for datalog polonius, the map between `Location`s and `RichLocation`s
98
96
/// - `borrow_set` -- information about borrows occurring in `body`
99
97
/// - `polonius_facts` -- when using Polonius, this is the generated set of Polonius facts
100
- /// - `flow_inits` -- results of a maybe-init dataflow analysis
101
98
/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysis
102
99
/// - `location_map` -- map between MIR `Location` and `PointIndex`
103
- pub ( crate ) fn type_check < ' a , ' tcx > (
100
+ pub ( crate ) fn type_check < ' tcx > (
104
101
root_cx : & mut BorrowCheckRootCtxt < ' tcx > ,
105
102
infcx : & BorrowckInferCtxt < ' tcx > ,
106
103
body : & Body < ' tcx > ,
@@ -109,7 +106,6 @@ pub(crate) fn type_check<'a, 'tcx>(
109
106
location_table : & PoloniusLocationTable ,
110
107
borrow_set : & BorrowSet < ' tcx > ,
111
108
polonius_facts : & mut Option < PoloniusFacts > ,
112
- flow_inits : ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
113
109
move_data : & MoveData < ' tcx > ,
114
110
location_map : Rc < DenseLocationMap > ,
115
111
) -> MirTypeckResults < ' tcx > {
@@ -167,7 +163,7 @@ pub(crate) fn type_check<'a, 'tcx>(
167
163
typeck. equate_inputs_and_outputs ( & normalized_inputs_and_output) ;
168
164
typeck. check_signature_annotation ( ) ;
169
165
170
- liveness:: generate ( & mut typeck, & location_map, flow_inits , move_data) ;
166
+ liveness:: generate ( & mut typeck, & location_map, move_data) ;
171
167
172
168
let opaque_type_values =
173
169
opaque_types:: take_opaques_and_register_member_constraints ( & mut typeck) ;
0 commit comments