diff options
| author | bors <bors@rust-lang.org> | 2020-01-12 09:44:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-12 09:44:55 +0000 |
| commit | 59c1db0339327f8b98c42ef0627a464915966d9b (patch) | |
| tree | 9102e96bf3aeccaf4d58ea36632f1513734b0bca /src/librustc_interface | |
| parent | 0b6c116a84fb1dbb60b5870291f5d7df808c280d (diff) | |
| parent | b3589292515b811400463409b5fd5afea2aef03b (diff) | |
| download | rust-59c1db0339327f8b98c42ef0627a464915966d9b.tar.gz rust-59c1db0339327f8b98c42ef0627a464915966d9b.zip | |
Auto merge of #67901 - matthewjasper:split-mir-build, r=nagisa
Split MIR building into its own crate
This moves `rustc_mir::{build, hair, lints}` to `rustc_mir_build`.
The new crate only has a `provide` function as it's public API.
Based on #67898
cc @Centril @rust-lang/compiler
r? @oli-obk
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_interface/passes.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_interface/Cargo.toml b/src/librustc_interface/Cargo.toml index eb0551c6065..98f7def7e36 100644 --- a/src/librustc_interface/Cargo.toml +++ b/src/librustc_interface/Cargo.toml @@ -32,6 +32,7 @@ rustc_codegen_llvm = { path = "../librustc_codegen_llvm", optional = true } rustc_hir = { path = "../librustc_hir" } rustc_metadata = { path = "../librustc_metadata" } rustc_mir = { path = "../librustc_mir" } +rustc_mir_build = { path = "../librustc_mir_build" } rustc_passes = { path = "../librustc_passes" } rustc_typeck = { path = "../librustc_typeck" } rustc_lint = { path = "../librustc_lint" } diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs index 67f9819f331..5f0d9ed5bdf 100644 --- a/src/librustc_interface/passes.rs +++ b/src/librustc_interface/passes.rs @@ -29,6 +29,7 @@ use rustc_hir::def_id::{CrateNum, LOCAL_CRATE}; use rustc_incremental; use rustc_lint::LintStore; use rustc_mir as mir; +use rustc_mir_build as mir_build; use rustc_parse::{parse_crate_from_file, parse_crate_from_source_str}; use rustc_passes::{self, hir_stats, layout_test}; use rustc_plugin_impl as plugin; @@ -671,6 +672,7 @@ pub fn default_provide(providers: &mut ty::query::Providers<'_>) { plugin::build::provide(providers); rustc::hir::provide(providers); mir::provide(providers); + mir_build::provide(providers); rustc_privacy::provide(providers); typeck::provide(providers); ty::provide(providers); |
