syntax_data: {"ast_node_type":"impl","tokens":[{"end":77,"kind":"keyword","start":0,"text":"if"}]}
source_snippet:             if !type_has_partial_eq_impl(self.tcx, typing_env, ty).has_impl {
context_before:             // Always check for `PartialEq` if we had no other errors yet.
context_after:                 let mut err = self.tcx.dcx().create_err(TypeNotPartialEq { span: self.span, ty });