write substs for lang item paths

This commit is contained in:
lcnr 2021-10-05 15:59:13 +02:00
parent 313e71a253
commit 7f7915347d

View File

@ -830,6 +830,7 @@ pub(in super::super) fn resolve_lang_item_path(
self.tcx.type_of(def_id)
};
let substs = self.infcx.fresh_substs_for_item(span, def_id);
self.write_substs(hir_id, substs);
let ty = item_ty.subst(self.tcx, substs);
self.write_resolution(hir_id, Ok((def_kind, def_id)));