diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-02 10:32:26 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-02 10:32:26 +0100 |
commit | 82cf27b5fc91a4125315d28b8a3c86e5fa7be26d (patch) | |
tree | c6f5e240d385fd33f25a70d20b8244a721202264 /crates/ra_ide_api | |
parent | 8256dfdd713451cbe54ee61a176b79f1d1bab589 (diff) | |
parent | 5af9e475f4acce54f8383ed22febc412cf2541d0 (diff) |
Merge #1362
1362: Introduce AST database r=matklad a=matklad
The idea here is to separate fragile bits which look into the syntax directly from robust bits which are safe across reparses. This uses the new `salsa::requires` featue
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index d84a0e7be..d1a452ecb 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs | |||
@@ -14,8 +14,9 @@ use crate::{LineIndex, symbol_index::{self, SymbolsDatabase}}; | |||
14 | ra_db::SourceDatabaseStorage, | 14 | ra_db::SourceDatabaseStorage, |
15 | LineIndexDatabaseStorage, | 15 | LineIndexDatabaseStorage, |
16 | symbol_index::SymbolsDatabaseStorage, | 16 | symbol_index::SymbolsDatabaseStorage, |
17 | hir::db::HirDatabaseStorage, | 17 | hir::db::AstDatabaseStorage, |
18 | hir::db::DefDatabaseStorage | 18 | hir::db::DefDatabaseStorage, |
19 | hir::db::HirDatabaseStorage | ||
19 | )] | 20 | )] |
20 | #[derive(Debug)] | 21 | #[derive(Debug)] |
21 | pub(crate) struct RootDatabase { | 22 | pub(crate) struct RootDatabase { |