Do not erase regions

This commit is contained in:
Esteban Küber 2023-01-08 07:43:24 +00:00
parent ddd9a9fb46
commit fcf0ed9018

View File

@ -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()