]> git.lizzy.rs Git - rust.git/commit
auto merge of #14345 : alexcrichton/rust/rustdoc-many-impls, r=pcwalton
authorbors <bors@rust-lang.org>
Thu, 22 May 2014 09:51:21 +0000 (02:51 -0700)
committerbors <bors@rust-lang.org>
Thu, 22 May 2014 09:51:21 +0000 (02:51 -0700)
commite7e5e9ce962d8243edd418c6f6d549d5bb62a227
treec90eca36b897788d0f257982e05cc24407a92550
parent022a7b3cfb8014f79c79ba85a8273d16cda6e423
parent06eb9765fec87dc66e17c97f667e30e6726d133e
auto merge of #14345 : alexcrichton/rust/rustdoc-many-impls, r=pcwalton

Right now, when you look in the "Implementors" section for traits, you only see
implementors within that crate. This commit modifies that section to include
implementors from neighboring crates as well.

For example, the Container trait currently says that it is only implemented by
strings and slices, but it is in fact implemented by nearly all containers.

Implementation-wise, this change generates an "implementors cache" similarly to
the search index where each crate will append implementors to the files. When
the page for a trait is loaded, it will load its specific cache file, rendering
links for all upstream types which implement the trait.