Skip to content

Commit fcf0ed9

Browse files
committed
Do not erase regions
1 parent ddd9a9f commit fcf0ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/demand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
719719
.infcx
720720
.type_implements_trait(
721721
self.tcx.get_diagnostic_item(sym::Into).unwrap(),
722-
[self.tcx.erase_regions(f), self.tcx.erase_regions(e)],
722+
[f, e],
723723
self.param_env,
724724
)
725725
.must_apply_modulo_regions()

0 commit comments

Comments
 (0)