Skip to content

Commit d1ce8e8

Browse files
committed
move liveness_map into the liveness module
1 parent 5147d38 commit d1ce8e8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/librustc_mir/borrow_check/nll/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use borrow_check::borrow_set::BorrowSet;
1212
use borrow_check::location::{LocationIndex, LocationTable};
1313
use borrow_check::nll::facts::AllFactsExt;
1414
use borrow_check::nll::type_check::{MirTypeckResults, MirTypeckRegionConstraints};
15+
use borrow_check::nll::type_check::liveness::liveness_map::{NllLivenessMap, LocalWithRegion};
1516
use borrow_check::nll::region_infer::values::RegionValueElements;
16-
use borrow_check::nll::liveness_map::{NllLivenessMap, LocalWithRegion};
1717
use dataflow::indexes::BorrowIndex;
1818
use dataflow::move_paths::MoveData;
1919
use dataflow::FlowAtLocation;
@@ -47,7 +47,6 @@ crate mod region_infer;
4747
mod renumber;
4848
crate mod type_check;
4949
mod universal_regions;
50-
crate mod liveness_map;
5150

5251
mod constraints;
5352

src/librustc_mir/borrow_check/nll/type_check/liveness/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ use util::liveness::{LivenessResults, LiveVariableMap };
2525

2626
use super::TypeChecker;
2727

28+
crate mod liveness_map;
29+
2830
/// Combines liveness analysis with initialization analysis to
2931
/// determine which variables are live at which points, both due to
3032
/// ordinary uses and drops. Returns a set of (ty, location) pairs

src/librustc_mir/borrow_check/nll/type_check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ use borrow_check::borrow_set::BorrowSet;
1515
use borrow_check::location::LocationTable;
1616
use borrow_check::nll::constraints::{ConstraintSet, OutlivesConstraint};
1717
use borrow_check::nll::facts::AllFacts;
18-
use borrow_check::nll::liveness_map::NllLivenessMap;
1918
use borrow_check::nll::region_infer::values::{RegionValueElements, LivenessValues};
2019
use borrow_check::nll::region_infer::{ClosureRegionRequirementsExt, TypeTest};
2120
use borrow_check::nll::type_check::free_region_relations::{CreateResult, UniversalRegionRelations};
21+
use borrow_check::nll::type_check::liveness::liveness_map::NllLivenessMap;
2222
use borrow_check::nll::universal_regions::UniversalRegions;
2323
use borrow_check::nll::LocalWithRegion;
2424
use borrow_check::nll::ToRegionVid;
@@ -75,7 +75,7 @@ macro_rules! span_mirbug_and_err {
7575
mod constraint_conversion;
7676
pub mod free_region_relations;
7777
mod input_output;
78-
mod liveness;
78+
crate mod liveness;
7979
mod relate_tys;
8080

8181
/// Type checks the given `mir` in the context of the inference

0 commit comments

Comments
 (0)