|
1 | 1 | use crate::borrow_check::borrow_set::BorrowSet; |
2 | | -use crate::borrow_check::location::{LocationIndex, LocationTable}; |
| 2 | +use crate::borrow_check::location::LocationTable; |
3 | 3 | use crate::borrow_check::nll::facts::AllFactsExt; |
4 | 4 | use crate::borrow_check::nll::type_check::{MirTypeckResults, MirTypeckRegionConstraints}; |
5 | 5 | use crate::borrow_check::nll::region_infer::values::RegionValueElements; |
6 | | -use crate::dataflow::indexes::BorrowIndex; |
7 | | -use crate::dataflow::move_paths::{InitLocation, MoveData, MovePathIndex, InitKind}; |
| 6 | +use crate::dataflow::move_paths::{InitLocation, MoveData, InitKind}; |
8 | 7 | use crate::dataflow::FlowAtLocation; |
9 | 8 | use crate::dataflow::MaybeInitializedPlaces; |
10 | 9 | use crate::transform::MirSource; |
@@ -43,10 +42,12 @@ crate mod universal_regions; |
43 | 42 | crate mod type_check; |
44 | 43 | crate mod region_infer; |
45 | 44 |
|
46 | | -use self::facts::AllFacts; |
| 45 | +use self::facts::{AllFacts, RustcFacts}; |
47 | 46 | use self::region_infer::RegionInferenceContext; |
48 | 47 | use self::universal_regions::UniversalRegions; |
49 | 48 |
|
| 49 | +crate type PoloniusOutput = Output<RustcFacts>; |
| 50 | + |
50 | 51 | /// Rewrites the regions in the MIR to use NLL variables, also |
51 | 52 | /// scraping out the set of universal regions (e.g., region parameters) |
52 | 53 | /// declared on the function. That set will need to be given to |
@@ -170,7 +171,7 @@ pub(in crate::borrow_check) fn compute_regions<'cx, 'tcx>( |
170 | 171 | errors_buffer: &mut Vec<Diagnostic>, |
171 | 172 | ) -> ( |
172 | 173 | RegionInferenceContext<'tcx>, |
173 | | - Option<Rc<Output<RegionVid, BorrowIndex, LocationIndex, Local, MovePathIndex>>>, |
| 174 | + Option<Rc<PoloniusOutput>>, |
174 | 175 | Option<ClosureRegionRequirements<'tcx>>, |
175 | 176 | ) { |
176 | 177 | let mut all_facts = if AllFacts::enabled(infcx.tcx) { |
|
0 commit comments