diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 12:00:59 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:42 +0200 |
| commit | 829a9d33a9f08ecdf52f95b07da5e355c3d3966d (patch) | |
| tree | 5e98cd4dfe17a473a121ca6693b392d5b6f2fc59 /compiler/rustc_interface/src/passes.rs | |
| parent | 601453a2acef1bc99922bc5aebcb10234bd72f1a (diff) | |
| download | rust-829a9d33a9f08ecdf52f95b07da5e355c3d3966d.tar.gz rust-829a9d33a9f08ecdf52f95b07da5e355c3d3966d.zip | |
Use () for entry_fn.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 96dbdce1126..6bf79e1f28d 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -820,8 +820,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> { sess.time("misc_checking_1", || { parallel!( { - entry_point = sess - .time("looking_for_entry_point", || rustc_passes::entry::find_entry_point(tcx)); + entry_point = sess.time("looking_for_entry_point", || tcx.entry_fn(())); sess.time("looking_for_plugin_registrar", || { plugin::build::find_plugin_registrar(tcx) |
