Skip to content

Commit 57cbe25

Browse files
committed
cleanup some skip_binder -> subst_identity
1 parent e6d4725 commit 57cbe25

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/rustc_middle/src/ty/instance.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ impl<'tcx> Instance<'tcx> {
586586
if let Some(substs) = self.substs_for_mir_body() {
587587
v.subst(tcx, substs)
588588
} else {
589-
v.skip_binder()
589+
v.subst_identity()
590590
}
591591
}
592592

compiler/rustc_mir_transform/src/shim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn build_call_shim<'tcx>(
647647
let mut sig = if let Some(sig_substs) = sig_substs {
648648
sig.subst(tcx, &sig_substs)
649649
} else {
650-
sig.skip_binder()
650+
sig.subst_identity()
651651
};
652652

653653
if let CallKind::Indirect(fnty) = call_kind {

src/librustdoc/clean/blanket_impl.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
104104
// the post-inference `trait_ref`, as it's more accurate.
105105
trait_: Some(clean_trait_ref_with_bindings(
106106
cx,
107-
ty::Binder::dummy(trait_ref.skip_binder()),
107+
ty::Binder::dummy(trait_ref.subst_identity()),
108108
ThinVec::new(),
109109
)),
110-
for_: clean_middle_ty(ty::Binder::dummy(ty.skip_binder()), cx, None),
110+
for_: clean_middle_ty(ty::Binder::dummy(ty.subst_identity()), cx, None),
111111
items: cx
112112
.tcx
113113
.associated_items(impl_def_id)
@@ -116,7 +116,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
116116
.collect::<Vec<_>>(),
117117
polarity: ty::ImplPolarity::Positive,
118118
kind: ImplKind::Blanket(Box::new(clean_middle_ty(
119-
ty::Binder::dummy(trait_ref.skip_binder().self_ty()),
119+
ty::Binder::dummy(trait_ref.subst_identity().self_ty()),
120120
cx,
121121
None,
122122
))),

0 commit comments

Comments
 (0)