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_middle/src/mir | |
| parent | 601453a2acef1bc99922bc5aebcb10234bd72f1a (diff) | |
| download | rust-829a9d33a9f08ecdf52f95b07da5e355c3d3966d.tar.gz rust-829a9d33a9f08ecdf52f95b07da5e355c3d3966d.zip | |
Use () for entry_fn.
Diffstat (limited to 'compiler/rustc_middle/src/mir')
| -rw-r--r-- | compiler/rustc_middle/src/mir/mono.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/mono.rs b/compiler/rustc_middle/src/mir/mono.rs index 67440e6e0ed..edf2e539765 100644 --- a/compiler/rustc_middle/src/mir/mono.rs +++ b/compiler/rustc_middle/src/mir/mono.rs @@ -88,7 +88,7 @@ impl<'tcx> MonoItem<'tcx> { match *self { MonoItem::Fn(ref instance) => { - let entry_def_id = tcx.entry_fn(LOCAL_CRATE).map(|(id, _)| id); + let entry_def_id = tcx.entry_fn(()).map(|(id, _)| id); // If this function isn't inlined or otherwise has an extern // indicator, then we'll be creating a globally shared version. if tcx.codegen_fn_attrs(instance.def_id()).contains_extern_indicator() |
