about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/codegen.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-07-20 11:40:15 +0200
committerlcnr <rust@lcnr.de>2022-07-21 13:08:56 +0200
commit608625dae95cde00e4570eb6c2d63b2244bbf34c (patch)
tree7df33e210f9f884331365ef5837f1e3716e3d7f5 /compiler/rustc_trait_selection/src/traits/codegen.rs
parentceeb5ade201e4181c6d5df2ba96ae5fb2193aadc (diff)
downloadrust-608625dae95cde00e4570eb6c2d63b2244bbf34c.tar.gz
rust-608625dae95cde00e4570eb6c2d63b2244bbf34c.zip
move `considering_regions` to the infcx
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/codegen.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/codegen.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/codegen.rs b/compiler/rustc_trait_selection/src/traits/codegen.rs
index c2b2e319951..5fcaa52d417 100644
--- a/compiler/rustc_trait_selection/src/traits/codegen.rs
+++ b/compiler/rustc_trait_selection/src/traits/codegen.rs
@@ -30,7 +30,9 @@ pub fn codegen_fulfill_obligation<'tcx>(
 
     // Do the initial selection for the obligation. This yields the
     // shallow result we are looking for -- that is, what specific impl.
-    tcx.infer_ctxt().with_opaque_type_inference(DefiningAnchor::Bubble).enter(|infcx| {
+    let mut infcx_builder =
+        tcx.infer_ctxt().ignoring_regions().with_opaque_type_inference(DefiningAnchor::Bubble);
+    infcx_builder.enter(|infcx| {
         //~^ HACK `Bubble` is required for
         // this test to pass: type-alias-impl-trait/assoc-projection-ice.rs
         let mut selcx = SelectionContext::new(&infcx);