diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 12:07:14 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:43 +0200 |
| commit | e9e1900af7eea8ec67fdc763291a085323b6c7af (patch) | |
| tree | 1555ba17685b26426682b080386d63f8606b6de4 /compiler/rustc_interface/src | |
| parent | 829a9d33a9f08ecdf52f95b07da5e355c3d3966d (diff) | |
| download | rust-e9e1900af7eea8ec67fdc763291a085323b6c7af.tar.gz rust-e9e1900af7eea8ec67fdc763291a085323b6c7af.zip | |
Use () for plugin_registrar_fn.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 6bf79e1f28d..948aad966fa 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -822,9 +822,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> { { entry_point = sess.time("looking_for_entry_point", || tcx.entry_fn(())); - sess.time("looking_for_plugin_registrar", || { - plugin::build::find_plugin_registrar(tcx) - }); + sess.time("looking_for_plugin_registrar", || tcx.ensure().plugin_registrar_fn(())); sess.time("looking_for_derive_registrar", || proc_macro_decls::find(tcx)); |
