1
- use crate :: borrow_check:: borrow_set:: BorrowSet ;
2
- use crate :: borrow_check:: location:: LocationTable ;
3
- use crate :: borrow_check:: nll:: facts:: AllFactsExt ;
4
- use crate :: borrow_check:: nll:: type_check:: { MirTypeckResults , MirTypeckRegionConstraints } ;
5
- use crate :: borrow_check:: nll:: region_infer:: values:: RegionValueElements ;
6
- use crate :: dataflow:: move_paths:: { InitLocation , MoveData , InitKind } ;
7
- use crate :: dataflow:: FlowAtLocation ;
8
- use crate :: dataflow:: MaybeInitializedPlaces ;
9
- use crate :: transform:: MirSource ;
10
- use crate :: borrow_check:: Upvar ;
1
+ //! The entry point of the NLL borrow checker.
2
+
11
3
use rustc:: hir:: def_id:: DefId ;
12
4
use rustc:: infer:: InferCtxt ;
13
5
use rustc:: mir:: { ClosureOutlivesSubject , ClosureRegionRequirements ,
@@ -27,24 +19,23 @@ use syntax::symbol::sym;
27
19
28
20
use self :: mir_util:: PassWhere ;
29
21
use polonius_engine:: { Algorithm , Output } ;
22
+
30
23
use crate :: util as mir_util;
31
24
use crate :: util:: pretty;
25
+ use crate :: dataflow:: move_paths:: { InitLocation , MoveData , InitKind } ;
26
+ use crate :: dataflow:: FlowAtLocation ;
27
+ use crate :: dataflow:: MaybeInitializedPlaces ;
28
+ use crate :: transform:: MirSource ;
32
29
33
- mod constraint_generation;
34
- mod facts;
35
- mod invalidation;
36
- mod renumber;
37
-
38
- mod member_constraints;
39
-
40
- crate mod constraints;
41
- crate mod universal_regions;
42
- crate mod type_check;
43
- crate mod region_infer;
44
-
45
- use self :: facts:: { AllFacts , RustcFacts } ;
46
- use self :: region_infer:: RegionInferenceContext ;
47
- use self :: universal_regions:: UniversalRegions ;
30
+ use crate :: borrow_check:: {
31
+ borrow_set:: BorrowSet ,
32
+ location:: LocationTable ,
33
+ facts:: { AllFacts , AllFactsExt , RustcFacts } ,
34
+ region_infer:: { RegionInferenceContext , values:: RegionValueElements } ,
35
+ universal_regions:: UniversalRegions ,
36
+ type_check:: { self , MirTypeckResults , MirTypeckRegionConstraints } ,
37
+ Upvar , renumber, constraint_generation, invalidation,
38
+ } ;
48
39
49
40
crate type PoloniusOutput = Output < RustcFacts > ;
50
41
0 commit comments