]> git.lizzy.rs Git - rust.git/commit
rustdoc: Skip types in impls in search index
authorUlrik Sverdrup <root@localhost>
Thu, 21 May 2015 12:17:37 +0000 (14:17 +0200)
committerUlrik Sverdrup <root@localhost>
Thu, 21 May 2015 12:17:37 +0000 (14:17 +0200)
commit093e18d18465364ef96495ab662fb4325595bead
tree3ea08b506674a2e625d86089a1391fe24aa4087d
parentd7185dcff12a6963535e73ed4b0f392da236068c
rustdoc: Skip types in impls in search index

For a trait *implementation* there are typedefs which are the types for
that particular trait and implementor. Skip these in the search index.

There were lots of dud items in the search index due to this (search for
Item, Iterator's associated type).

Add a boolean to clean::TypedefItem so that it tracks whether the it is
a type alias on its own, or if it's a `type` item in a trait impl.

Fixes #22442
src/librustdoc/clean/inline.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/render.rs
src/test/rustdoc/search-index.rs