Add type to differentiate between fake and real DefId's

This commit is contained in:
Justus K 2021-04-29 21:36:54 +02:00
parent 7a0f1781d0
commit b6120bfb35
No known key found for this signature in database
GPG key ID: 8C62FE98A62FC462
28 changed files with 336 additions and 268 deletions

View file

@ -87,11 +87,6 @@ impl DefPathTable {
hash
}
/// Used by librustdoc for fake DefIds.
pub fn num_def_ids(&self) -> usize {
self.index_to_key.len()
}
pub fn enumerated_keys_and_path_hashes(
&self,
) -> impl Iterator<Item = (DefIndex, &DefKey, &DefPathHash)> + '_ {