]> git.lizzy.rs Git - rust.git/commitdiff
Retain original pass order
authorIgor Matuszewski <Xanewok@gmail.com>
Sun, 13 Jan 2019 22:55:47 +0000 (23:55 +0100)
committerIgor Matuszewski <Xanewok@gmail.com>
Sun, 13 Jan 2019 22:55:47 +0000 (23:55 +0100)
It shouldn't matter, but hey - better safe than sorry!

src/librustc_driver/driver.rs

index 6667db35b70e6c5b25cb6d065966e5690f44dc4d..3b7de37ae4b3f3f474dd6ea9c1b076f28f480b0d 100644 (file)
@@ -1243,8 +1243,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(
             // tcx available.
             time(sess, "dep graph tcx init", || rustc_incremental::dep_graph_tcx_init(tcx));
 
-            time(sess, "loop checking", || loops::check_crate(tcx));
-
             time(sess, "looking for plugin registrar", || {
                 plugin::build::find_plugin_registrar(tcx)
             });
@@ -1253,6 +1251,8 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(
                 proc_macro_decls::find(tcx)
             });
 
+            time(sess, "loop checking", || loops::check_crate(tcx));
+
             time(sess, "attribute checking", || {
                 hir::check_attr::check_crate(tcx)
             });