1
Fork 0

changes from review: add FIXME to clippy and change subst_identity to skip_binder in mir subst methods

This commit is contained in:
Kyle Matsuda 2023-05-06 22:56:51 -06:00
parent e4f6b8b43b
commit d27f40175f
2 changed files with 6 additions and 3 deletions

View file

@ -586,7 +586,7 @@ impl<'tcx> Instance<'tcx> {
if let Some(substs) = self.substs_for_mir_body() {
v.subst(tcx, substs)
} else {
v.subst_identity()
v.skip_binder()
}
}
@ -603,7 +603,7 @@ impl<'tcx> Instance<'tcx> {
if let Some(substs) = self.substs_for_mir_body() {
tcx.subst_and_normalize_erasing_regions(substs, param_env, v)
} else {
tcx.normalize_erasing_regions(param_env, v.subst_identity())
tcx.normalize_erasing_regions(param_env, v.skip_binder())
}
}
@ -620,7 +620,7 @@ impl<'tcx> Instance<'tcx> {
if let Some(substs) = self.substs_for_mir_body() {
tcx.try_subst_and_normalize_erasing_regions(substs, param_env, v)
} else {
tcx.try_normalize_erasing_regions(param_env, v.subst_identity())
tcx.try_normalize_erasing_regions(param_env, v.skip_binder())
}
}