]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14346 : alexcrichton/rust/rustdoc-external-crates, r=pcwalton
authorbors <bors@rust-lang.org>
Thu, 22 May 2014 17:31:25 +0000 (10:31 -0700)
committerbors <bors@rust-lang.org>
Thu, 22 May 2014 17:31:25 +0000 (10:31 -0700)
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.

src/libtest/lib.rs

index dc3a18b809510e2b61cc587c17a6504a8790c9a6..06b1126ed05b55f2ebf41e7670a23ef0b546b611 100644 (file)
@@ -1007,7 +1007,6 @@ pub fn run_test(opts: &TestOpts,
         return;
     }
 
-    #[allow(deprecated_owned_vector)]
     fn run_test_inner(desc: TestDesc,
                       monitor_ch: Sender<MonitorMsg>,
                       nocapture: bool,