move expansion-related code to a separate crate

This commit is contained in:
Aleksey Kladov 2019-10-29 14:55:39 +03:00
parent 4f22d2f3b0
commit 5413875644
11 changed files with 344 additions and 303 deletions

View file

@ -36,11 +36,11 @@ impl Module {
}
}
impl HirFileId {
pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ {
debug_fn(move |fmt| db.debug_hir_file_id(self, fmt))
}
}
// impl HirFileId {
// pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ {
// debug_fn(move |fmt| db.debug_hir_file_id(self, fmt))
// }
// }
pub trait HirDebugHelper: HirDatabase {
fn crate_name(&self, _krate: CrateId) -> Option<String> {