File tree Expand file tree Collapse file tree
compiler/rustc_hir_analysis/src/hir_ty_lowering Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments