aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/src/module_map_db.rs
diff options
context:
space:
mode:
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()))