Skip to content

Commit 7f79153

Browse files
committed
write substs for lang item paths
1 parent 313e71a commit 7f79153

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_typeck/src/check/fn_ctxt

1 file changed

+1
-0
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs

+1
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
830830
self.tcx.type_of(def_id)
831831
};
832832
let substs = self.infcx.fresh_substs_for_item(span, def_id);
833+
self.write_substs(hir_id, substs);
833834
let ty = item_ty.subst(self.tcx, substs);
834835

835836
self.write_resolution(hir_id, Ok((def_kind, def_id)));

0 commit comments

Comments
 (0)