|
1 | | -use super::*; |
2 | | -use crate::dep_graph::{DepGraph, DepKind, DepNodeIndex}; |
3 | | -use crate::hir::intravisit::{NestedVisitorMap, Visitor}; |
4 | | -use crate::hir::map::HirEntryMap; |
5 | | -use crate::ich::Fingerprint; |
| 1 | +use crate::dep_graph::{DepGraph, DepKind, DepNode, DepNodeIndex}; |
| 2 | +use crate::hir::intravisit::{self, NestedVisitorMap, Visitor}; |
| 3 | +use crate::hir::map::definitions::{self, DefPathHash}; |
| 4 | +use crate::hir::map::{Entry, HirEntryMap}; |
| 5 | +use crate::ich::StableHashingContext; |
6 | 6 | use crate::middle::cstore::CrateStore; |
| 7 | +use rustc_data_structures::fingerprint::Fingerprint; |
7 | 8 | use rustc_data_structures::fx::FxHashMap; |
| 9 | +use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; |
8 | 10 | use rustc_data_structures::svh::Svh; |
9 | 11 | use rustc_hir as hir; |
| 12 | +use rustc_hir::def_id::CRATE_DEF_INDEX; |
10 | 13 | use rustc_hir::def_id::{CrateNum, DefIndex, LOCAL_CRATE}; |
| 14 | +use rustc_hir::*; |
11 | 15 | use rustc_index::vec::IndexVec; |
12 | 16 | use rustc_session::{CrateDisambiguator, Session}; |
13 | 17 | use rustc_span::source_map::SourceMap; |
14 | | -use rustc_span::{Span, Symbol}; |
15 | | -use std::iter::repeat; |
| 18 | +use rustc_span::{Span, Symbol, DUMMY_SP}; |
16 | 19 | use syntax::ast::NodeId; |
17 | 20 |
|
18 | | -use crate::ich::StableHashingContext; |
19 | | -use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; |
| 21 | +use std::iter::repeat; |
20 | 22 |
|
21 | 23 | /// A visitor that walks over the HIR and collects `Node`s into a HIR map. |
22 | 24 | pub(super) struct NodeCollector<'a, 'hir> { |
|
0 commit comments