about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-22 15:15:51 +0000
committerbors <bors@rust-lang.org>2023-04-22 15:15:51 +0000
commit4396ceca05585ad887976b985cfa8dd8e58cd512 (patch)
tree57ccce436c3230950a9a7dab80eb88cf55cde126 /compiler/rustc_data_structures/src
parent39cf520299794e6c1b6b471db5d9935e0c6271ab (diff)
parent964600b38ed0aeec8d3869aa38d31b3e1553066a (diff)
downloadrust-4396ceca05585ad887976b985cfa8dd8e58cd512.tar.gz
rust-4396ceca05585ad887976b985cfa8dd8e58cd512.zip
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 'compiler/rustc_data_structures/src')
0 files changed, 0 insertions, 0 deletions