From 781e898348496d5d290ef0d181ce0a68f606c128 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 23 May 2014 19:31:13 -0700 Subject: [PATCH] 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. --- src/librustdoc/clean.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs index a78e9d1d1fb0..4ba59647063e 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,