aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-06-02 18:15:10 +0100
committerAleksey Kladov <[email protected]>2019-06-02 18:15:10 +0100
commit8b7f58976b32ccc768e35151b77aa9ea004b7495 (patch)
tree272f93a4431ca77d6cce8ee43c0d6d4f3c636701 /crates/ra_hir/src/lib.rs
parentb40c6de8a6887e6c184fca5c9188d26ee402df23 (diff)
don't cache parses twice
Before this commit, `Parse`s for original file ended up two times in salsa's db: first, when we parse original file, and second, when we parse macro or a file. Given that parse trees are the worst ofenders in terms of memory, it makes sense to make sure we store them only once.
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r--crates/ra_hir/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs
index f2a31795d..18dea5f17 100644
--- a/crates/ra_hir/src/lib.rs
+++ b/crates/ra_hir/src/lib.rs
@@ -60,7 +60,7 @@ pub use self::{
60 path::{Path, PathKind}, 60 path::{Path, PathKind},
61 name::Name, 61 name::Name,
62 source_id::{AstIdMap, ErasedFileAstId}, 62 source_id::{AstIdMap, ErasedFileAstId},
63 ids::{HirFileId, MacroDefId, MacroCallId, MacroCallLoc}, 63 ids::{HirFileId, MacroDefId, MacroCallId, MacroCallLoc, MacroFile},
64 nameres::{PerNs, Namespace, ImportId}, 64 nameres::{PerNs, Namespace, ImportId},
65 ty::{Ty, ApplicationTy, TypeCtor, TraitRef, Substs, display::HirDisplay, CallableDef}, 65 ty::{Ty, ApplicationTy, TypeCtor, TraitRef, Substs, display::HirDisplay, CallableDef},
66 impl_block::{ImplBlock, ImplItem}, 66 impl_block::{ImplBlock, ImplItem},