diff options
| -rw-r--r-- | compiler/rustc_hir_typeck/src/demand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_typeck/src/demand.rs b/compiler/rustc_hir_typeck/src/demand.rs index b10bb593ead..d55ea52d16b 100644 --- a/compiler/rustc_hir_typeck/src/demand.rs +++ b/compiler/rustc_hir_typeck/src/demand.rs @@ -719,7 +719,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { .infcx .type_implements_trait( self.tcx.get_diagnostic_item(sym::Into).unwrap(), - [self.tcx.erase_regions(f), self.tcx.erase_regions(e)], + [f, e], self.param_env, ) .must_apply_modulo_regions() |
