Skip to content

rustdoc adds non existent type parameters to trait from different crate. #15132

Closed
@luqmana

Description

@luqmana

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions