rustdoc: Replace FakeDefId
with new ItemId
type
This commit is contained in:
parent
6e9b3696d4
commit
43e1cdbaf9
14 changed files with 79 additions and 84 deletions
|
@ -8,7 +8,7 @@ use rustc_middle::middle::privacy::AccessLevels;
|
|||
use rustc_middle::ty::TyCtxt;
|
||||
use rustc_span::symbol::sym;
|
||||
|
||||
use crate::clean::{self, FakeDefId, GetDefId};
|
||||
use crate::clean::{self, GetDefId, ItemId};
|
||||
use crate::fold::DocFolder;
|
||||
use crate::formats::item_type::ItemType;
|
||||
use crate::formats::Impl;
|
||||
|
@ -122,7 +122,7 @@ crate struct Cache {
|
|||
/// All intra-doc links resolved so far.
|
||||
///
|
||||
/// Links are indexed by the DefId of the item they document.
|
||||
crate intra_doc_links: BTreeMap<FakeDefId, Vec<clean::ItemLink>>,
|
||||
crate intra_doc_links: BTreeMap<ItemId, Vec<clean::ItemLink>>,
|
||||
}
|
||||
|
||||
/// This struct is used to wrap the `cache` and `tcx` in order to run `DocFolder`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue