From 9f53cec1da6ae9ed8735e28fca09837a0cef7667 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 25 Mar 2020 18:41:46 +0100 Subject: Cleanup memory usage stats --- crates/ra_hir_def/src/db.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crates/ra_hir_def/src') diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs index 7f8c1ea21..5dc7395f5 100644 --- a/crates/ra_hir_def/src/db.rs +++ b/crates/ra_hir_def/src/db.rs @@ -48,6 +48,7 @@ pub trait DefDatabase: InternDatabase + AstDatabase + Upcast { fn raw_items(&self, file_id: HirFileId) -> Arc; #[salsa::invoke(crate_def_map_wait)] + #[salsa::transparent] fn crate_def_map(&self, krate: CrateId) -> Arc; #[salsa::invoke(CrateDefMap::crate_def_map_query)] @@ -109,12 +110,6 @@ pub trait DefDatabase: InternDatabase + AstDatabase + Upcast { fn documentation(&self, def: AttrDefId) -> Option; } -// impl Upcast for T { -// fn upcast(&self) -> &dyn AstDatabase { -// &*self -// } -// } - fn crate_def_map_wait(db: &impl DefDatabase, krate: CrateId) -> Arc { let _p = profile("crate_def_map:wait"); db.crate_def_map_query(krate) -- cgit v1.2.3