about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorIgor Matuszewski <Xanewok@gmail.com>2019-01-13 01:06:50 +0100
committerIgor Matuszewski <Xanewok@gmail.com>2019-01-13 23:53:58 +0100
commit59d7d7d54b4b31d6a20143484536c4806fa8a74e (patch)
tree2da2213c232f8279a7d0ba322cb7bc3da1f520b1 /src/librustc_driver
parentfb6040096ca2c21c354a500ab8fd0038d84be193 (diff)
downloadrust-59d7d7d54b4b31d6a20143484536c4806fa8a74e.tar.gz
rust-59d7d7d54b4b31d6a20143484536c4806fa8a74e.zip
Querify local plugin_registrar_fn
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/driver.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs
index 71bc9968b1c..6667db35b70 100644
--- a/src/librustc_driver/driver.rs
+++ b/src/librustc_driver/driver.rs
@@ -1159,6 +1159,7 @@ where
 
 pub fn default_provide(providers: &mut ty::query::Providers) {
     proc_macro_decls::provide(providers);
+    plugin::build::provide(providers);
     hir::provide(providers);
     borrowck::provide(providers);
     mir::provide(providers);
@@ -1213,11 +1214,6 @@ where
         middle::entry::find_entry_point(sess, &hir_map, name)
     });
 
-    sess.plugin_registrar_fn
-        .set(time(sess, "looking for plugin registrar", || {
-            plugin::build::find_plugin_registrar(sess.diagnostic(), &hir_map)
-        }));
-
     let mut local_providers = ty::query::Providers::default();
     default_provide(&mut local_providers);
     codegen_backend.provide(&mut local_providers);
@@ -1249,6 +1245,10 @@ where
 
             time(sess, "loop checking", || loops::check_crate(tcx));
 
+            time(sess, "looking for plugin registrar", || {
+                plugin::build::find_plugin_registrar(tcx)
+            });
+
             time(sess, "looking for derive registrar", || {
                 proc_macro_decls::find(tcx)
             });