From e7aa17b5605bdf393c76549ff1507110a94b4cca Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 19 Dec 2018 00:35:13 +0300 Subject: Gc syntax trees after every modification --- crates/ra_hir/src/db.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index ff41fd326..62cf9ab17 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs @@ -27,20 +27,16 @@ pub trait HirDatabase: SyntaxDatabase } fn fn_syntax(fn_id: FnId) -> FnDefNode { type FnSyntaxQuery; - // Don't retain syntax trees in memory - storage dependencies; use fn query_definitions::fn_syntax; } fn file_items(file_id: FileId) -> Arc { type SourceFileItemsQuery; - storage dependencies; use fn query_definitions::file_items; } fn file_item(source_item_id: SourceItemId) -> SyntaxNode { type FileItemQuery; - storage dependencies; use fn query_definitions::file_item; } -- cgit v1.2.3