Skip to content

Commit ec582d5

Browse files
committed
replace def_id: did with def_id
1 parent c771f6e commit ec582d5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • compiler/rustc_hir_analysis/src/hir_ty_lowering

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,22 +1150,22 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
11501150
fn lower_path_segment(
11511151
&self,
11521152
span: Span,
1153-
did: DefId,
1153+
def_id: DefId,
11541154
item_segment: &hir::PathSegment<'tcx>,
11551155
) -> Ty<'tcx> {
11561156
let tcx = self.tcx();
1157-
let args = self.lower_generic_args_of_path_segment(span, did, item_segment);
1157+
let args = self.lower_generic_args_of_path_segment(span, def_id, item_segment);
11581158

1159-
if let DefKind::TyAlias = tcx.def_kind(did)
1160-
&& tcx.type_alias_is_lazy(did)
1159+
if let DefKind::TyAlias = tcx.def_kind(def_id)
1160+
&& tcx.type_alias_is_lazy(def_id)
11611161
{
11621162
// Type aliases defined in crates that have the
11631163
// feature `lazy_type_alias` enabled get encoded as a type alias that normalization will
11641164
// then actually instantiate the where bounds of.
1165-
let alias_ty = ty::AliasTy::new_from_args(tcx, ty::Free { def_id: did }, args);
1165+
let alias_ty = ty::AliasTy::new_from_args(tcx, ty::Free { def_id }, args);
11661166
Ty::new_alias(tcx, alias_ty)
11671167
} else {
1168-
tcx.at(span).type_of(did).instantiate(tcx, args)
1168+
tcx.at(span).type_of(def_id).instantiate(tcx, args)
11691169
}
11701170
}
11711171

0 commit comments

Comments
 (0)