diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-06 22:56:51 -0600 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-06 23:36:04 -0600 |
| commit | d27f40175fb7221bc5fa4c19ff75e211947222e8 (patch) | |
| tree | 554cdafa8fb08589596b8e1721c5516e8b5a1c90 /compiler/rustc_middle/src/ty/instance.rs | |
| parent | e4f6b8b43b6e9c0373ee45aaa7a6f3094c475137 (diff) | |
| download | rust-d27f40175fb7221bc5fa4c19ff75e211947222e8.tar.gz rust-d27f40175fb7221bc5fa4c19ff75e211947222e8.zip | |
changes from review: add FIXME to clippy and change subst_identity to skip_binder in mir subst methods
Diffstat (limited to 'compiler/rustc_middle/src/ty/instance.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/instance.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/ty/instance.rs b/compiler/rustc_middle/src/ty/instance.rs index 4bbd7aaf10f..8c69894f5ba 100644 --- a/compiler/rustc_middle/src/ty/instance.rs +++ b/compiler/rustc_middle/src/ty/instance.rs @@ -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()) } } |
