Skip to content

Commit

Permalink
Auto merge of #100705 - compiler-errors:issue-100620, r=oli-obk
Browse files Browse the repository at this point in the history
Avoid reporting overflow in `is_impossible_method`

Fixes #100620

We're evaluating a new predicate in a different param-env than it was checked during typeck, so be more careful about handling overflow errors. Instead of using `FulfillmentCtxt`, using `InferCtxt::evaluate_obligation` by itself will give us back the overflow error, so we can throw it away properly.

This may give us more false-positives, but it doesn't regress the `<HashMap as Iterator>::rev` example that originally motivated adding `is_impossible_method` in the first place.
  • Loading branch information
bors committed Aug 26, 2022
2 parents aec224c + 4b0c969 commit a65a679
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a65a679

Please sign in to comment.