1
Fork 0

review comments

This commit is contained in:
Esteban Küber 2023-02-05 12:32:27 +00:00
parent 30cf7a3f51
commit ffaf2a5c27
2 changed files with 4 additions and 2 deletions

View file

@ -928,7 +928,7 @@ fn infer_placeholder_type<'a>(
// Typeck doesn't expect erased regions to be returned from `type_of`.
tcx.fold_regions(ty, |r, _| match *r {
ty::ReErased | ty::ReError => tcx.lifetimes.re_static,
ty::ReErased => tcx.lifetimes.re_static,
_ => r,
})
}