From 707a9a08bf3f048ca3c3b0dd752c2b1022242333 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Sun, 13 Jan 2019 23:55:47 +0100 Subject: [PATCH] Retain original pass order It shouldn't matter, but hey - better safe than sorry! --- src/librustc_driver/driver.rs | 4 ++-- 1 file 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 @@ 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) }); -- 2.44.0