X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_monomorphize%2Fsrc%2Fcollector.rs;h=4e37da0dedb154e5312ffd92e5fb23c1f749893f;hb=e7cdd4c0909b62f2ee0368fd10e6e244f2af44b4;hp=6ec5e9e113d1b4b85f6134c36fc1e4e75c89e529;hpb=21c8447d789b17e5902f2e9793eef0006559ef9b;p=rust.git diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 6ec5e9e113d..4e37da0dedb 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -1314,7 +1314,7 @@ fn push_if_root(&mut self, def_id: LocalDefId) { /// the return type of `main`. This is not needed when /// the user writes their own `start` manually. fn push_extra_entry_roots(&mut self) { - let Some((main_def_id, EntryFnType::Main)) = self.entry_fn else { + let Some((main_def_id, EntryFnType::Main { .. })) = self.entry_fn else { return; };