rustdoc: Resolve doc links in external traits having local impls

This commit is contained in:
Vadim Petrochenkov 2022-11-13 16:31:00 +03:00
parent 928d14bcd1
commit 8e81cc262e
3 changed files with 27 additions and 1 deletions

View file

@ -1932,6 +1932,11 @@ impl<'a> Resolver<'a> {
}
}
/// For rustdoc.
pub fn get_partial_res(&self, node_id: NodeId) -> Option<PartialRes> {
self.partial_res_map.get(&node_id).copied()
}
/// Retrieves the span of the given `DefId` if `DefId` is in the local crate.
#[inline]
pub fn opt_span(&self, def_id: DefId) -> Option<Span> {