diff options
author | bors <bors@rust-lang.org> | 2023-04-22 15:15:51 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-04-22 15:15:51 +0000 |
commit | 4396ceca05585ad887976b985cfa8dd8e58cd512 (patch) | |
tree | 57ccce436c3230950a9a7dab80eb88cf55cde126 /tests/rustdoc-js-std/parser-errors.js | |
parent | 39cf520299794e6c1b6b471db5d9935e0c6271ab (diff) | |
parent | 964600b38ed0aeec8d3869aa38d31b3e1553066a (diff) | |
download | rust-4396ceca05585ad887976b985cfa8dd8e58cd512.tar.gz |
Auto merge of #109753 - compiler-errors:replenish-region-constraints, r=aliemjay
Clone region var origins instead of taking them in borrowck
Fixes an issue with the new solver where reporting a borrow-checker error ICEs because it calls `InferCtxt::evaluate_obligation`.
This also removes a handful of unnecessary `tcx.infer_ctxt().build()` calls that are only there to mitigate this same exact issue, but with the old solver.
Fixes compiler-errors/next-solver-hir-issues#12.
----
This implements `@aliemjay's` solution where we just don't *take* the region constraints, but clone them. This potentially makes it easier to write a bug about taking region constraints twice or never at all, but again, not many folks are touching this code.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions