rust/compiler/rustc_trait_selection
Dylan DPC bd91c94a5d
Rollup merge of #104269 - compiler-errors:hang-in-where-clause-sugg, r=lcnr
Fix hang in where-clause suggestion with `predicate_can_apply`

Using `predicate_may_hold` during error reporting causes an evaluation overflow, which (because we use `evaluate_obligation_no_overflow`) then causes the predicate to need to be re-evaluated locally, which results in a hang.

... but since the "add a where clause" suggestion is best-effort, just throw any overflow errors. No need for 100% accuracy.

r? `@lcnr` who has been thinking about overflows... Let me know if you want more context about this issue, and as always, feel free to reassign.

Fixes #104225
2022-11-23 20:32:35 +05:30
..
src Rollup merge of #104269 - compiler-errors:hang-in-where-clause-sugg, r=lcnr 2022-11-23 20:32:35 +05:30
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00