Skip to content

Commit bc4de71

Browse files
committed
gc syntax trees
1 parent 35568cf commit bc4de71

File tree

2 files changed

+37
-36
lines changed

2 files changed

+37
-36
lines changed

Cargo.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_analysis/src/imp.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ use salsa::{ParallelDatabase, Database};
1818
use crate::{
1919
AnalysisChange,
2020
db::{
21-
self, SyntaxDatabase,
22-
21+
self, SyntaxDatabase, FileSyntaxQuery,
2322
},
2423
input::{SourceRootId, FilesDatabase, SourceRoot, WORKSPACE},
2524
descriptors::module::{ModulesDatabase, ModuleTree, Problem},
@@ -194,6 +193,8 @@ impl AnalysisImpl {
194193
.filter_map(|it| it.ok())
195194
.collect()
196195
};
196+
self.db.query(FileSyntaxQuery)
197+
.sweep(salsa::SweepStrategy::default().discard_values());
197198
Ok(query.search(&buf))
198199
}
199200
fn module_tree(&self, file_id: FileId) -> Cancelable<Arc<ModuleTree>> {

0 commit comments

Comments
 (0)