rust/compiler/rustc_trait_selection/src
Matthias Krüger 5d131407da
Rollup merge of #122360 - veera-sivarajan:bugfix-121941, r=compiler-errors
Don't Create `ParamCandidate` When Obligation Contains Errors

Fixes #121941

I'm not sure if I understand this correctly but this bug was caused by an error type incorrectly matching against `ParamCandidate`. This was introduced by the changes made in #72621 (figured using cargo-bisect-rustc).

This PR fixes it by skipping `ParamCandidate` generation when an error type is involved. Also, this is similar to #73005 but addresses `ParamCandidate` instead of `ImplCandidate`.
2024-03-13 06:41:23 +01:00
..
solve Rollup merge of #122319 - compiler-errors:next-solver-normalizing-self-constrains-args, r=lcnr 2024-03-12 06:29:04 +01:00
traits Rollup merge of #122360 - veera-sivarajan:bugfix-121941, r=compiler-errors 2024-03-13 06:41:23 +01:00
errors.rs Rename AddToDiagnostic as Subdiagnostic. 2024-03-11 10:04:49 +11:00
infer.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00
lib.rs Convert ProofTreeVisitor to use VisitorResult 2024-03-05 13:30:49 -05:00
regions.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00