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 inlined trait shows extra type parameters #15099

Closed
bluss opened this issue Jun 22, 2014 · 2 comments
Closed

Rustdoc inlined trait shows extra type parameters #15099

bluss opened this issue Jun 22, 2014 · 2 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@bluss
Copy link
Member

bluss commented Jun 22, 2014

Compare core vs std version of the same trait:

The original shows fn null() -> Self; while the inlined documentation says fn null<T>() -> Self; in both summary and method detail.

@alexcrichton
Copy link
Member

That is... surprising!

@alexcrichton
Copy link
Member

As @luqmana points out in #15132


Compare the docs for RandomAccessIterator in core and in std.

    fn indexable(&self) -> uint;
    fn idx(&mut self, index: uint) -> Option<A>;

vs

    fn indexable<A>(&self) -> uint;
    fn idx<A>(&mut self, index: uint) -> Option<A>;

Those <A> don't actually exist in the code and would actually be wrong if it were there since they'd be shadowing the A from the trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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