rustdoc: ensure HTML/JS side implementors don't have dups
This commit is contained in:
parent
a7d6768e3b
commit
20010d7597
6 changed files with 126 additions and 16 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue