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

rustdoc renders re-exported types' field types differently from their definitions #89712

Closed
camelid opened this issue Oct 9, 2021 · 1 comment
Labels
A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@camelid
Copy link
Member

camelid commented Oct 9, 2021

For example, with MatchExpressionArmCause. Note Vec<Span> in the definition vs Vec<Span, Global> in the re-export, and Ty<'tcx> in the definition vs &'tcx TyS<'tcx> in the re-export.

Definition

image

Re-export

image


Note

I'm labeling this as A-cross-crate-reexports, but it may happen with intra-crate re-exports too.

@camelid camelid added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. I-prioritize Issue: Indicates that prioritization has been requested for this issue. A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate labels Oct 9, 2021
@camelid camelid changed the title rustdoc verbosely renders re-exported types' field types rustdoc renders re-exported types' field types differently from their definitions Oct 9, 2021
@jyn514
Copy link
Member

jyn514 commented Oct 10, 2021

Duplicate of #80379

@jyn514 jyn514 marked this as a duplicate of #80379 Oct 10, 2021
@jyn514 jyn514 closed this as completed Oct 10, 2021
@camelid camelid removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants