]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/middle/cstore.rs
Encode ExpnId using ExpnHash for incr. comp.
[rust.git] / compiler / rustc_middle / src / middle / cstore.rs
index 7efe8e061e885a8b385b1aa77f1220afe47547e0..4c35b49bcefd73079d808d96a449e144e339ec65 100644 (file)
@@ -6,12 +6,12 @@
 
 use rustc_ast as ast;
 use rustc_data_structures::sync::{self, MetadataRef};
-use rustc_hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
+use rustc_hir::def_id::{CrateNum, DefId, StableCrateId, LOCAL_CRATE};
 use rustc_hir::definitions::{DefKey, DefPath, DefPathHash};
 use rustc_macros::HashStable;
 use rustc_session::search_paths::PathKind;
 use rustc_session::utils::NativeLibKind;
-use rustc_session::StableCrateId;
+use rustc_span::hygiene::{ExpnHash, ExpnId};
 use rustc_span::symbol::Symbol;
 use rustc_span::Span;
 use rustc_target::spec::Target;
@@ -207,6 +207,7 @@ fn def_path_hash_to_def_id(
         index_guess: u32,
         hash: DefPathHash,
     ) -> Option<DefId>;
+    fn expn_hash_to_expn_id(&self, cnum: CrateNum, index_guess: u32, hash: ExpnHash) -> ExpnId;
 
     // utility functions
     fn encode_metadata(&self, tcx: TyCtxt<'_>) -> EncodedMetadata;