Prevent infinite recursion and OOM in project_and_unify_term#156842
Prevent infinite recursion and OOM in project_and_unify_term#156842BloodStainedCrow wants to merge 1 commit into
project_and_unify_term#156842Conversation
|
rustbot has assigned @dingxiangfei2009. Use Why was this reviewer chosen?The reviewer was selected based on:
|
project_and_unify_term
|
I have added the recursion check to the "lowest" function which added the new obligation, So it might make sense to move this check further up to cover more of |
|
@rustbot reroll |
|
Sorry for the long wait. I'm not familiar with the code here enough to suggest anything here, but I might be able to find somebody more knowledgeable. r? project-trait-system-refactor BTW amazing work on your FactoryGame project ;) |
|
cjgillot you have 20 PRs assigned, so let me know if I should look for somebody else |
|
☔ The latest upstream changes (presumably #157894) made this pull request unmergeable. Please resolve the merge conflicts. |
Prevents an infinite recursion when using the old trait solver.
Fixes #156615.
Note that the example in #156615 encounters this infinite recursion in
report_ambiguity_errors.The overflow abort introduced here shadows the original error for which we are generating a report, which is unfortunate but preferable to hangs/OOMs:
Ideally, we could report the original error AND report the overflow while generating the report, something like this: