fn impl_polarity(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ImplPolarity