From: Igor Matuszewski Date: Sun, 13 Jan 2019 22:55:47 +0000 (+0100) Subject: Retain original pass order X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=707a9a08bf3f048ca3c3b0dd752c2b1022242333;p=rust.git Retain original pass order It shouldn't matter, but hey - better safe than sorry! --- 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) });