about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_driver/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs
index 6667db35b70..3b7de37ae4b 100644
--- a/src/librustc_driver/driver.rs
+++ b/src/librustc_driver/driver.rs
@@ -1243,8 +1243,6 @@ where
             // 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 @@ where
                 proc_macro_decls::find(tcx)
             });
 
+            time(sess, "loop checking", || loops::check_crate(tcx));
+
             time(sess, "attribute checking", || {
                 hir::check_attr::check_crate(tcx)
             });