diff options
| author | lcnr <rust@lcnr.de> | 2022-07-20 11:40:15 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-07-21 13:08:56 +0200 |
| commit | 608625dae95cde00e4570eb6c2d63b2244bbf34c (patch) | |
| tree | 7df33e210f9f884331365ef5837f1e3716e3d7f5 /compiler/rustc_trait_selection/src/traits/codegen.rs | |
| parent | ceeb5ade201e4181c6d5df2ba96ae5fb2193aadc (diff) | |
| download | rust-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.rs | 4 |
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); |
