summary refs log tree commit diff
path: root/compiler/rustc_interface/src/passes.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-11 12:12:52 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-12 13:58:43 +0200
commitb7bf467fa3c92fdb520460abbe2568da5cd7afb2 (patch)
treeff2beca6e2fa31dc95895d5e71f81b81899ae9a5 /compiler/rustc_interface/src/passes.rs
parente9e1900af7eea8ec67fdc763291a085323b6c7af (diff)
downloadrust-b7bf467fa3c92fdb520460abbe2568da5cd7afb2.tar.gz
rust-b7bf467fa3c92fdb520460abbe2568da5cd7afb2.zip
Use () for proc_macro_decls_static.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 948aad966fa..803efb303e4 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -824,7 +824,9 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
 
                 sess.time("looking_for_plugin_registrar", || tcx.ensure().plugin_registrar_fn(()));
 
-                sess.time("looking_for_derive_registrar", || proc_macro_decls::find(tcx));
+                sess.time("looking_for_derive_registrar", || {
+                    tcx.ensure().proc_macro_decls_static(())
+                });
 
                 let cstore = tcx
                     .cstore_as_any()