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.
This commit is contained in:
parent
5ee3d0e1ff
commit
781e898348
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue