-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Remove fake IDs in rustdoc #75355
Conversation
They're confusing, cause crashes, and aren't necessary.
Some changes occurred in intra-doc-links. cc @jyn514 |
(rust_highfive has picked a reviewer for you, use r? to override) |
This code path was never taken before because all the ids were fake. So the ids would never have been seen before.
@jyn514: Fake DefIds exist to handle 'synthetic' auto trait impls, which don't have a real |
@Aaron1011 do you know what the |
@jyn514: |
☔ The latest upstream changes (presumably #75549) made this pull request unmergeable. Please resolve the merge conflicts. |
Closing this because I think it needs more design work in rustdoc (#76382), the current approach isn't going to work. |
Pass a `TyCtxt` through to `FormatRender` This is the next step after rust-lang#79957 for rust-lang#76382. Eventually I plan to use this to remove `stability`, `const_stability`, and `deprecation` from `Item`, but that needs more extensive changes (in particular, rust-lang#75355 or something like it). This has no actual changes to behavior, it's just moving types around. ccc rust-lang#80014 (comment)
They're confusing and cause crashes. Part of an ongoing effort to debug #75176.
Not sure why the tests are failing, probably I'm not understanding why fake IDs were added in the first place.