changes from review: add FIXME to clippy and change subst_identity to skip_binder in mir subst methods
This commit is contained in:
parent
e4f6b8b43b
commit
d27f40175f
2 changed files with 6 additions and 3 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue