Add `T: PartialEq` bounds to derived `StructuralPartialEq` impls.
Fixes <https://github.com/rust-lang/rust/issues/147714>.
This is a breaking change to fix a bug, so it will need a crater run if it is to be done at all.
The changes in `const_to_pat.rs` are entirely to avoid regressing diagnostic quality, and should not make any difference to what code is accepted. The changes in `compute_applicable_impls_for_diagnostics` and its callers are entirely to be able to reuse that algorithm for this purpose.
@rustbot label +T-lang