Skip to content

Commit 4b69edc

Browse files
committed
rename to user_substs_applied_to_def for consistency
1 parent 5a52983 commit 4b69edc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_mir/hair/cx/expr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ fn make_mirror_unadjusted<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
759759
}
760760
}
761761

762-
fn user_annotated_ty_for_def(
762+
fn user_substs_applied_to_def(
763763
cx: &mut Cx<'a, 'gcx, 'tcx>,
764764
hir_id: hir::HirId,
765765
def: &Def,
@@ -795,7 +795,7 @@ fn user_annotated_ty_for_def(
795795
cx.user_substs_applied_to_ty_of_hir_id(hir_id),
796796

797797
_ =>
798-
bug!("user_annotated_ty_for_def: unexpected def {:?} at {:?}", def, hir_id)
798+
bug!("user_substs_applied_to_def: unexpected def {:?} at {:?}", def, hir_id)
799799
}
800800
}
801801

@@ -815,7 +815,7 @@ fn method_callee<'a, 'gcx, 'tcx>(
815815
.unwrap_or_else(|| {
816816
span_bug!(expr.span, "no type-dependent def for method callee")
817817
});
818-
let user_ty = user_annotated_ty_for_def(cx, expr.hir_id, def);
818+
let user_ty = user_substs_applied_to_def(cx, expr.hir_id, def);
819819
(def.def_id(), cx.tables().node_substs(expr.hir_id), user_ty)
820820
}
821821
};
@@ -882,7 +882,7 @@ fn convert_path_expr<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
882882
Def::StructCtor(_, CtorKind::Fn) |
883883
Def::VariantCtor(_, CtorKind::Fn) |
884884
Def::SelfCtor(..) => {
885-
let user_ty = user_annotated_ty_for_def(cx, expr.hir_id, &def);
885+
let user_ty = user_substs_applied_to_def(cx, expr.hir_id, &def);
886886
ExprKind::Literal {
887887
literal: ty::Const::zero_sized(
888888
cx.tcx,

0 commit comments

Comments
 (0)