aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/src/module_map_db.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-12 15:13:11 +0100
committerAleksey Kladov <[email protected]>2018-09-15 22:00:05 +0100
commit907d44a75113d318102ff05a66b4dcdafa1b5e7f (patch)
treed1f1511030946b859cae204b68d6bb8d645aee55 /crates/libanalysis/src/module_map_db.rs
parentdbdf72e2e2fb3ebc1a5cdeac4e70108371bb91fb (diff)
any-cache
Diffstat (limited to 'crates/libanalysis/src/module_map_db.rs')
-rw-r--r--crates/libanalysis/src/module_map_db.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/libanalysis/src/module_map_db.rs b/crates/libanalysis/src/module_map_db.rs
index 72173c7bc..4d4bd9104 100644
--- a/crates/libanalysis/src/module_map_db.rs
+++ b/crates/libanalysis/src/module_map_db.rs
@@ -30,10 +30,6 @@ impl Query for ParentModule {
30} 30}
31 31
32impl Eval for ModuleDescr { 32impl Eval for ModuleDescr {
33 fn cacheable() -> bool { true }
34 fn cache(cache: &mut Cache) -> &mut QueryCache<Self> {
35 &mut cache.module_descr
36 }
37 fn eval(ctx: &QueryCtx, file_id: &FileId) -> Arc<descr::ModuleDescr> { 33 fn eval(ctx: &QueryCtx, file_id: &FileId) -> Arc<descr::ModuleDescr> {
38 let file = ctx.get::<FileSyntax>(file_id); 34 let file = ctx.get::<FileSyntax>(file_id);
39 Arc::new(descr::ModuleDescr::new(file.ast())) 35 Arc::new(descr::ModuleDescr::new(file.ast()))