Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Aug 10, 2020

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.

They're confusing, cause crashes, and aren't necessary.
@jyn514 jyn514 added C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Aug 10, 2020
@rust-highfive
Copy link
Collaborator

Some changes occurred in intra-doc-links.

cc @jyn514

@rust-highfive
Copy link
Collaborator

r? @GuillaumeGomez

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 10, 2020
This code path was never taken before because all the ids were fake. So
the ids would never have been seen before.
@Aaron1011
Copy link
Member

@jyn514: Fake DefIds exist to handle 'synthetic' auto trait impls, which don't have a real DefId.

@jyn514
Copy link
Member Author

jyn514 commented Aug 10, 2020

@Aaron1011 do you know what the param_env_def_id represents, then? It's what get_auto_trait_impls is using to look up the synthetic impl.

@Aaron1011
Copy link
Member

@jyn514: param_env_def_id represents the item we are creating a synthetic impl for, and used to obtain the corresponding ParamEnv.

@bors
Copy link
Contributor

bors commented Aug 15, 2020

☔ The latest upstream changes (presumably #75549) made this pull request unmergeable. Please resolve the merge conflicts.

@jyn514 jyn514 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 30, 2020
@jyn514
Copy link
Member Author

jyn514 commented Sep 5, 2020

Closing this because I think it needs more design work in rustdoc (#76382), the current approach isn't going to work.

@jyn514 jyn514 closed this Sep 5, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 18, 2020
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)
@jyn514 jyn514 deleted the counterfeit branch December 29, 2020 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants