1
Fork 0

rustdoc: ensure HTML/JS side implementors don't have dups

This commit is contained in:
Michael Howell 2022-05-05 17:20:14 -07:00
parent a7d6768e3b
commit 20010d7597
6 changed files with 126 additions and 16 deletions

View file

@ -501,10 +501,13 @@ pub(super) fn write_shared(
//
// FIXME: this is a vague explanation for why this can't be a `get`, in
// theory it should be...
let &(ref remote_path, remote_item_type) = match cache.paths.get(&did) {
Some(p) => p,
let (remote_path, remote_item_type) = match cache.exact_paths.get(&did) {
Some(p) => match cache.paths.get(&did).or_else(|| cache.external_paths.get(&did)) {
Some((_, t)) => (p, t),
None => continue,
},
None => match cache.external_paths.get(&did) {
Some(p) => p,
Some((p, t)) => (p, t),
None => continue,
},
};