summary refs log tree commit diff
path: root/src/librustc_driver/driver.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2017-08-21 10:24:12 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2017-08-21 12:49:18 +0200
commit4da2a88abc99eebbc5bdbfd8aada728982a262d7 (patch)
tree05e05afa4a99c577d333c0831089563fca31688c /src/librustc_driver/driver.rs
parent757b7ac2abd69d97ba196b76f0bbf78c377aaea9 (diff)
downloadrust-4da2a88abc99eebbc5bdbfd8aada728982a262d7.tar.gz
rust-4da2a88abc99eebbc5bdbfd8aada728982a262d7.zip
Expose mir-borrowck via a query.
(A followup commit removes the mir::transform based entry point.)
Diffstat (limited to 'src/librustc_driver/driver.rs')
-rw-r--r--src/librustc_driver/driver.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs
index c98f9c3d466..011c769519a 100644
--- a/src/librustc_driver/driver.rs
+++ b/src/librustc_driver/driver.rs
@@ -1075,6 +1075,10 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
              "borrow checking",
              || borrowck::check_crate(tcx));
 
+        time(time_passes,
+             "MIR borrow checking",
+             || for def_id in tcx.body_owners() { tcx.mir_borrowck(def_id) });
+
         // Avoid overwhelming user with errors if type checking failed.
         // I'm not sure how helpful this is, to be honest, but it avoids
         // a