Skip to content

Commit

Permalink
move liveness_map into the liveness module
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Aug 7, 2018
1 parent 5147d38 commit d1ce8e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/librustc_mir/borrow_check/nll/mod.rs
Expand Up @@ -12,8 +12,8 @@ use borrow_check::borrow_set::BorrowSet;
use borrow_check::location::{LocationIndex, LocationTable};
use borrow_check::nll::facts::AllFactsExt;
use borrow_check::nll::type_check::{MirTypeckResults, MirTypeckRegionConstraints};
use borrow_check::nll::type_check::liveness::liveness_map::{NllLivenessMap, LocalWithRegion};
use borrow_check::nll::region_infer::values::RegionValueElements;
use borrow_check::nll::liveness_map::{NllLivenessMap, LocalWithRegion};
use dataflow::indexes::BorrowIndex;
use dataflow::move_paths::MoveData;
use dataflow::FlowAtLocation;
Expand Down Expand Up @@ -47,7 +47,6 @@ crate mod region_infer;
mod renumber;
crate mod type_check;
mod universal_regions;
crate mod liveness_map;

mod constraints;

Expand Down
2 changes: 2 additions & 0 deletions src/librustc_mir/borrow_check/nll/type_check/liveness/mod.rs
Expand Up @@ -25,6 +25,8 @@ use util::liveness::{LivenessResults, LiveVariableMap };

use super::TypeChecker;

crate mod liveness_map;

/// Combines liveness analysis with initialization analysis to
/// determine which variables are live at which points, both due to
/// ordinary uses and drops. Returns a set of (ty, location) pairs
Expand Down
4 changes: 2 additions & 2 deletions src/librustc_mir/borrow_check/nll/type_check/mod.rs
Expand Up @@ -15,10 +15,10 @@ use borrow_check::borrow_set::BorrowSet;
use borrow_check::location::LocationTable;
use borrow_check::nll::constraints::{ConstraintSet, OutlivesConstraint};
use borrow_check::nll::facts::AllFacts;
use borrow_check::nll::liveness_map::NllLivenessMap;
use borrow_check::nll::region_infer::values::{RegionValueElements, LivenessValues};
use borrow_check::nll::region_infer::{ClosureRegionRequirementsExt, TypeTest};
use borrow_check::nll::type_check::free_region_relations::{CreateResult, UniversalRegionRelations};
use borrow_check::nll::type_check::liveness::liveness_map::NllLivenessMap;
use borrow_check::nll::universal_regions::UniversalRegions;
use borrow_check::nll::LocalWithRegion;
use borrow_check::nll::ToRegionVid;
Expand Down Expand Up @@ -75,7 +75,7 @@ macro_rules! span_mirbug_and_err {
mod constraint_conversion;
pub mod free_region_relations;
mod input_output;
mod liveness;
crate mod liveness;
mod relate_tys;

/// Type checks the given `mir` in the context of the inference
Expand Down

0 comments on commit d1ce8e8

Please sign in to comment.