diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-06 18:11:47 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-08-06 18:16:10 -0400 |
| commit | 0c99d806eabd32a2ee2e6c71b400222b99c659e1 (patch) | |
| tree | f168d4df6e7904113b48d776d8b63a1525a57f9f /src/test/incremental/thinlto | |
| parent | f05e9da493a9e447dd2dafc271b06ad80358496f (diff) | |
| download | rust-0c99d806eabd32a2ee2e6c71b400222b99c659e1.tar.gz rust-0c99d806eabd32a2ee2e6c71b400222b99c659e1.zip | |
Use the proper kind for associated items
See comments in the diff; this is such a hack. The reason this can't be done properly in `register_res` is because there's no way to get back the parent type: calling `tcx.parent(assoc_item)` gets you the _impl_, not the type. You can call `tcx.impl_trait_ref(impl_).self_ty()`, but there's no way to go from that to a DefId without unwrapping.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
