File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_query_system/src/query Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::sync::OnceLock;
44
55use rustc_data_structures:: sharded:: ShardedHashMap ;
66pub use rustc_data_structures:: vec_cache:: VecCache ;
7- use rustc_hir:: def_id:: LOCAL_CRATE ;
7+ use rustc_hir:: def_id:: { LOCAL_CRATE , LocalDefId } ;
88use rustc_index:: Idx ;
99use rustc_span:: def_id:: { DefId , DefIndex } ;
1010
@@ -116,7 +116,7 @@ where
116116pub struct DefIdCache < V > {
117117 /// Stores the local DefIds in a dense map. Local queries are much more often dense, so this is
118118 /// a win over hashing query keys at marginal memory cost (~5% at most) compared to FxHashMap.
119- local : VecCache < DefIndex , V , DepNodeIndex > ,
119+ local : VecCache < LocalDefId , V , DepNodeIndex > ,
120120 foreign : DefaultCache < DefId , V > ,
121121}
122122
You can’t perform that action at this time.
0 commit comments