about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-23 19:31:13 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-25 01:18:10 -0700
commit781e898348496d5d290ef0d181ce0a68f606c128 (patch)
treec8e9c895aa15b4f85dfa01d11fe75efc48ec6d4c
parent5ee3d0e1ffa6e190d73815ba4754b2618528c83e (diff)
downloadrust-781e898348496d5d290ef0d181ce0a68f606c128.tar.gz
rust-781e898348496d5d290ef0d181ce0a68f606c128.zip
rustdoc: Use csearch for impl loading
The normal analysis passes aren't guaranteed to have loaded all impls, so use
the csearch methods directly to load impls.
-rw-r--r--src/librustdoc/clean.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs
index a78e9d1d1fb..4ba59647063 100644
--- a/src/librustdoc/clean.rs
+++ b/src/librustdoc/clean.rs
@@ -1961,7 +1961,7 @@ fn build_impl(tcx: &ty::ctxt, did: ast::DefId) -> Item {
     let associated_trait = csearch::get_impl_trait(tcx, did);
     let attrs = load_attrs(tcx, did);
     let ty = ty::lookup_item_type(tcx, did);
-    let methods = tcx.impl_methods.borrow().get(&did).iter().map(|did| {
+    let methods = csearch::get_impl_methods(&tcx.sess.cstore, did).iter().map(|did| {
         let mut item = match ty::method(tcx, *did).clean() {
             Provided(item) => item,
             Required(item) => item,