mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
rustdoc: avoid dangling alias pointers after merge
This commit is contained in:
@@ -721,7 +721,13 @@ fn map_fn_sig_item(map: &FxHashMap<usize, usize>, ty: &mut RenderType) {
|
||||
}
|
||||
},
|
||||
),
|
||||
self.alias_pointers[id].and_then(|alias| map.get(&alias).copied()),
|
||||
self.alias_pointers[id].and_then(|alias| {
|
||||
if self.names[alias].is_empty() {
|
||||
None
|
||||
} else {
|
||||
map.get(&alias).copied()
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
new.generic_inverted_index = self
|
||||
|
||||
Reference in New Issue
Block a user