rust icon indicating copy to clipboard operation
rust copied to clipboard

Don't Create `ParamCandidate` When Obligation Contains Errors

Open veera-sivarajan opened this issue 1 year ago • 6 comments

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.

veera-sivarajan avatar Mar 12 '24 03:03 veera-sivarajan

r? @compiler-errors

rustbot has assigned @compiler-errors. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Mar 12 '24 03:03 rustbot

Please squash this into one commit. Please also leave a comment that explains what this special case is for, preferably referencing an issue and explaining some motivation behind why the fix works.

@rustbot atuhor

compiler-errors avatar Mar 12 '24 14:03 compiler-errors

@rustbot author

compiler-errors avatar Mar 12 '24 18:03 compiler-errors

@rustbot ready

veera-sivarajan avatar Mar 12 '24 19:03 veera-sivarajan

@bors r+

compiler-errors avatar Mar 12 '24 19:03 compiler-errors

:pushpin: Commit 96b8225d8dd971bc2ecc7aa12068adcda9a9f20f has been approved by compiler-errors

It is now in the queue for this repository.

bors avatar Mar 12 '24 19:03 bors