fn has_allow_dead_code(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool