mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
move type_check
out of transform
and into the nll
module
This commit is contained in:
parent
fad3d1d7fd
commit
1c57468840
@ -16,7 +16,6 @@ use rustc::util::nodemap::FxHashMap;
|
|||||||
use std::collections::BTreeSet;
|
use std::collections::BTreeSet;
|
||||||
use std::io;
|
use std::io;
|
||||||
use transform::MirSource;
|
use transform::MirSource;
|
||||||
use transform::type_check;
|
|
||||||
use util::liveness::{self, LivenessMode, LivenessResult, LocalSet};
|
use util::liveness::{self, LivenessMode, LivenessResult, LocalSet};
|
||||||
use borrow_check::FlowAtLocation;
|
use borrow_check::FlowAtLocation;
|
||||||
use dataflow::MaybeInitializedLvals;
|
use dataflow::MaybeInitializedLvals;
|
||||||
@ -27,14 +26,15 @@ use util::pretty::{self, ALIGN};
|
|||||||
use self::mir_util::PassWhere;
|
use self::mir_util::PassWhere;
|
||||||
|
|
||||||
mod constraint_generation;
|
mod constraint_generation;
|
||||||
|
pub(crate) mod region_infer;
|
||||||
|
mod renumber;
|
||||||
mod subtype_constraint_generation;
|
mod subtype_constraint_generation;
|
||||||
|
pub(crate) mod type_check;
|
||||||
mod universal_regions;
|
mod universal_regions;
|
||||||
|
|
||||||
|
use self::region_infer::RegionInferenceContext;
|
||||||
use self::universal_regions::UniversalRegions;
|
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
|
/// Rewrites the regions in the MIR to use NLL variables, also
|
||||||
/// scraping out the set of universal regions (e.g., region parameters)
|
/// scraping out the set of universal regions (e.g., region parameters)
|
||||||
|
@ -14,11 +14,11 @@ use rustc::infer::region_constraints::RegionConstraintData;
|
|||||||
use rustc::infer::region_constraints::{Verify, VerifyBound};
|
use rustc::infer::region_constraints::{Verify, VerifyBound};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::codemap::Span;
|
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::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
|
/// When the MIR type-checker executes, it validates all the types in
|
||||||
/// the MIR, and in the process generates a set of constraints that
|
/// the MIR, and in the process generates a set of constraints that
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use borrow_check::nll::type_check;
|
||||||
use build;
|
use build;
|
||||||
use rustc::hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
|
use rustc::hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
|
||||||
use rustc::mir::{Mir, Promoted};
|
use rustc::mir::{Mir, Promoted};
|
||||||
@ -30,7 +31,6 @@ pub mod simplify_branches;
|
|||||||
pub mod simplify;
|
pub mod simplify;
|
||||||
pub mod erase_regions;
|
pub mod erase_regions;
|
||||||
pub mod no_landing_pads;
|
pub mod no_landing_pads;
|
||||||
pub mod type_check;
|
|
||||||
pub mod rustc_peek;
|
pub mod rustc_peek;
|
||||||
pub mod elaborate_drops;
|
pub mod elaborate_drops;
|
||||||
pub mod add_call_guards;
|
pub mod add_call_guards;
|
||||||
|
Loading…
Reference in New Issue
Block a user