diff options
| author | lcnr <rust@lcnr.de> | 2021-10-05 15:59:13 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-10-15 10:58:18 +0200 |
| commit | 7f7915347dce231e0adc3cd8b95c1d6d977cab6b (patch) | |
| tree | e4541b382fd7ba3025c2ae84b60fd9e27730d3b4 | |
| parent | 313e71a2535196466b0bbdcfa3387bd6373e0f28 (diff) | |
| download | rust-7f7915347dce231e0adc3cd8b95c1d6d977cab6b.tar.gz rust-7f7915347dce231e0adc3cd8b95c1d6d977cab6b.zip | |
write substs for lang item paths
| -rw-r--r-- | compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs index 7b9629e534b..2354d9a605e 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs @@ -830,6 +830,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { 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))); |
