diff options
author | Aleksey Kladov <[email protected]> | 2018-09-12 15:13:11 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-15 22:00:05 +0100 |
commit | 907d44a75113d318102ff05a66b4dcdafa1b5e7f (patch) | |
tree | d1f1511030946b859cae204b68d6bb8d645aee55 /crates/libanalysis/src/module_map_db.rs | |
parent | dbdf72e2e2fb3ebc1a5cdeac4e70108371bb91fb (diff) |
any-cache
Diffstat (limited to 'crates/libanalysis/src/module_map_db.rs')
-rw-r--r-- | crates/libanalysis/src/module_map_db.rs | 4 |
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 | ||
32 | impl Eval for ModuleDescr { | 32 | impl 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())) |