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 adds non existent type parameters to trait from different crate. #15132

Closed
luqmana opened this issue Jun 23, 2014 · 1 comment
Closed

Comments

@luqmana
Copy link
Member

luqmana commented Jun 23, 2014

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.

@luqmana luqmana added the A-docs label Jun 23, 2014
@alexcrichton
Copy link
Member

This is highly likely to be a dupe of #15099, closing as such, but moving the comments over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants