move type_check out of transform and into the nll module

This commit is contained in:
Niko Matsakis 2017-12-03 12:03:44 -05:00
parent fad3d1d7fd
commit 1c57468840
4 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,6 @@ use rustc::util::nodemap::FxHashMap;
use std::collections::BTreeSet;
use std::io;
use transform::MirSource;
use transform::type_check;
use util::liveness::{self, LivenessMode, LivenessResult, LocalSet};
use borrow_check::FlowAtLocation;
use dataflow::MaybeInitializedLvals;
@ -27,14 +26,15 @@ use util::pretty::{self, ALIGN};
use self::mir_util::PassWhere;
mod constraint_generation;
pub(crate) mod region_infer;
mod renumber;
mod subtype_constraint_generation;
pub(crate) mod type_check;
mod universal_regions;
use self::region_infer::RegionInferenceContext;
use self::universal_regions::UniversalRegions;
pub(crate) mod region_infer;
use self::region_infer::RegionInferenceContext;
mod renumber;
/// Rewrites the regions in the MIR to use NLL variables, also
/// scraping out the set of universal regions (e.g., region parameters)

View File

@ -14,11 +14,11 @@ use rustc::infer::region_constraints::RegionConstraintData;
use rustc::infer::region_constraints::{Verify, VerifyBound};
use rustc::ty;
use syntax::codemap::Span;
use transform::type_check::Locations;
use transform::type_check::MirTypeckRegionConstraints;
use transform::type_check::OutlivesSet;
use super::region_infer::{TypeTest, RegionInferenceContext, RegionTest};
use super::type_check::Locations;
use super::type_check::MirTypeckRegionConstraints;
use super::type_check::OutlivesSet;
/// When the MIR type-checker executes, it validates all the types in
/// the MIR, and in the process generates a set of constraints that

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use borrow_check::nll::type_check;
use build;
use rustc::hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
use rustc::mir::{Mir, Promoted};
@ -30,7 +31,6 @@ pub mod simplify_branches;
pub mod simplify;
pub mod erase_regions;
pub mod no_landing_pads;
pub mod type_check;
pub mod rustc_peek;
pub mod elaborate_drops;
pub mod add_call_guards;