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