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 doesn't produce "Trait Implementations" for type aliases #19381

Closed
jbapple opened this issue Nov 28, 2014 · 2 comments
Closed

rustdoc doesn't produce "Trait Implementations" for type aliases #19381

jbapple opened this issue Nov 28, 2014 · 2 comments
Labels
C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@jbapple
Copy link

jbapple commented Nov 28, 2014

pub trait Foo {}
pub struct Bar;
pub type Baz = Bar;
impl Foo for Baz {}
pub trait Qux {}
impl Qux for Bar {}

For this, rustdoc produces a "Trait Implementations" section for Bar, but not for Baz. Furthermore, Baz's "Trait Implementations" section lists only Qux, not Foo. The "Implementors" section on the Foo page does list that Baz is an implementor.

@steveklabnik
Copy link
Member

Triage: no change.

lambda-fairy added a commit to lambda-fairy/maud that referenced this issue Sep 24, 2016
Due to rust-lang/rust#19381, trait `impl`s on type aliases are not shown
in automatically generated documentation. Until this bug is fixed, it is
better not to write code this way.
@steveklabnik steveklabnik added T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. and removed T-tools labels May 18, 2017
@Mark-Simulacrum Mark-Simulacrum added C-feature-request Category: A feature request, i.e: not implemented / a PR. C-bug Category: This is a bug. and removed C-feature-request Category: A feature request, i.e: not implemented / a PR. labels Jul 22, 2017
@QuietMisdreavus
Copy link
Member

Fixed by #42027.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. 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

5 participants