Skip to content

Commit

Permalink
auto merge of rust-lang#14346 : alexcrichton/rust/rustdoc-external-cr…
Browse files Browse the repository at this point in the history
…ates, r=pcwalton

This commit alters rustdoc to crawl the metadata of upstream libraries in order
to fill in default methods for traits implemented in downstream crates. This,
for example, documents the `insert` function on hash maps.

This is a fairly lossy extraction from the metadata. Documentation and
attributes are lost, but they aren't used anyway. Unfortunately, argument names
are also lost because they are not present in the metadata. Source links are
also lost because the spans are not serialized.

While not perfect, it appears that presenting this documentation through rustdoc
is much better than nothing, so I wanted to land this to allow iteration on it
later on.
  • Loading branch information
bors committed May 22, 2014
2 parents 3c9f2a5 + c746c50 commit 8d50d6a
Show file tree
Hide file tree
Showing 7 changed files with 433 additions and 104 deletions.
Loading

0 comments on commit 8d50d6a

Please sign in to comment.