File tree 4 files changed +5
-4
lines changed
src/librustc_mir/borrow_check/nll
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use borrow_check::borrow_set::BorrowSet;
12
12
use borrow_check:: location:: { LocationIndex , LocationTable } ;
13
13
use borrow_check:: nll:: facts:: AllFactsExt ;
14
14
use borrow_check:: nll:: type_check:: { MirTypeckResults , MirTypeckRegionConstraints } ;
15
+ use borrow_check:: nll:: type_check:: liveness:: liveness_map:: { NllLivenessMap , LocalWithRegion } ;
15
16
use borrow_check:: nll:: region_infer:: values:: RegionValueElements ;
16
- use borrow_check:: nll:: liveness_map:: { NllLivenessMap , LocalWithRegion } ;
17
17
use dataflow:: indexes:: BorrowIndex ;
18
18
use dataflow:: move_paths:: MoveData ;
19
19
use dataflow:: FlowAtLocation ;
@@ -47,7 +47,6 @@ crate mod region_infer;
47
47
mod renumber;
48
48
crate mod type_check;
49
49
mod universal_regions;
50
- crate mod liveness_map;
51
50
52
51
mod constraints;
53
52
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ use util::liveness::{LivenessResults, LiveVariableMap };
25
25
26
26
use super :: TypeChecker ;
27
27
28
+ crate mod liveness_map;
29
+
28
30
/// Combines liveness analysis with initialization analysis to
29
31
/// determine which variables are live at which points, both due to
30
32
/// ordinary uses and drops. Returns a set of (ty, location) pairs
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ use borrow_check::borrow_set::BorrowSet;
15
15
use borrow_check:: location:: LocationTable ;
16
16
use borrow_check:: nll:: constraints:: { ConstraintSet , OutlivesConstraint } ;
17
17
use borrow_check:: nll:: facts:: AllFacts ;
18
- use borrow_check:: nll:: liveness_map:: NllLivenessMap ;
19
18
use borrow_check:: nll:: region_infer:: values:: { RegionValueElements , LivenessValues } ;
20
19
use borrow_check:: nll:: region_infer:: { ClosureRegionRequirementsExt , TypeTest } ;
21
20
use borrow_check:: nll:: type_check:: free_region_relations:: { CreateResult , UniversalRegionRelations } ;
21
+ use borrow_check:: nll:: type_check:: liveness:: liveness_map:: NllLivenessMap ;
22
22
use borrow_check:: nll:: universal_regions:: UniversalRegions ;
23
23
use borrow_check:: nll:: LocalWithRegion ;
24
24
use borrow_check:: nll:: ToRegionVid ;
@@ -75,7 +75,7 @@ macro_rules! span_mirbug_and_err {
75
75
mod constraint_conversion;
76
76
pub mod free_region_relations;
77
77
mod input_output;
78
- mod liveness;
78
+ crate mod liveness;
79
79
mod relate_tys;
80
80
81
81
/// Type checks the given `mir` in the context of the inference
You can’t perform that action at this time.
0 commit comments