We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91223ac commit 433a5f1Copy full SHA for 433a5f1
compiler/rustc_passes/src/entry.rs
@@ -93,7 +93,7 @@ fn find_item(id: ItemId, ctxt: &mut EntryContext<'_>) {
93
}
94
EntryPointType::MainNamed => (),
95
EntryPointType::OtherMain => {
96
- ctxt.non_main_fns.push(ctxt.tcx.def_span(id.def_id.to_def_id()));
+ ctxt.non_main_fns.push(ctxt.tcx.def_span(id.def_id));
97
98
EntryPointType::MainAttr => {
99
if ctxt.attr_main_fn.is_none() {
0 commit comments