diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-08 00:07:40 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-29 13:40:08 -0500 |
| commit | 6ab1f05697c3f2df4e439a05ebcee479a9a16d80 (patch) | |
| tree | 8984ae64a2a5a81da8a7d102a43b4b933abfe4cc /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | e37f25aa3f356546ab851e394d5598fc575eabda (diff) | |
| download | rust-6ab1f05697c3f2df4e439a05ebcee479a9a16d80.tar.gz rust-6ab1f05697c3f2df4e439a05ebcee479a9a16d80.zip | |
Fix intra-doc links for `Self` on primitives
- Remove the difference between `parent_item` and `current_item`; these should never have been different. - Remove `current_item` from `resolve` and `variant_field` so that `Self` is only substituted in one place at the very start. - Resolve the current item as a `DefId`, not a `HirId`. This is what actually fixed the bug. Hacks: - `clean` uses `TypedefItem` when it _really_ should be `AssociatedTypeItem`. I tried fixing this without success and hacked around it instead (see comments) - This stringifies DefIds, then resolves them a second time. This is really silly and rustdoc should just use DefIds throughout. Fixing this is a larger task than I want to take on right now.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
