mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
don't use volatile queries
"volatile" means "changes every time". That is, all transitive rev-deps of volatile queries will be executed every time. We actually need "dependencies".
This commit is contained in:
parent
0bc6f5802f
commit
6bb06addf8
2 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ salsa::query_group! {
|
|||
fn resolve_syntax_ptr(ptr: SyntaxPtr) -> SyntaxNode {
|
||||
type ResolveSyntaxPtrQuery;
|
||||
// Don't retain syntax trees in memory
|
||||
storage volatile;
|
||||
storage dependencies;
|
||||
use fn crate::syntax_ptr::resolve_syntax_ptr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,13 +32,13 @@ salsa::query_group! {
|
|||
|
||||
fn _file_items(file_id: FileId) -> Arc<FileItems> {
|
||||
type FileItemsQuery;
|
||||
storage volatile;
|
||||
storage dependencies;
|
||||
use fn module::nameres::file_items;
|
||||
}
|
||||
|
||||
fn _file_item(file_id: FileId, file_item_id: FileItemId) -> SyntaxNode {
|
||||
type FileItemQuery;
|
||||
storage volatile;
|
||||
storage dependencies;
|
||||
use fn module::nameres::file_item;
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ salsa::query_group! {
|
|||
fn _fn_syntax(fn_id: FnId) -> FnDefNode {
|
||||
type FnSyntaxQuery;
|
||||
// Don't retain syntax trees in memory
|
||||
storage volatile;
|
||||
storage dependencies;
|
||||
use fn function::imp::fn_syntax;
|
||||
}
|
||||
fn _submodules(source: ModuleSource) -> Cancelable<Arc<Vec<module::imp::Submodule>>> {
|
||||
|
|
Loading…
Reference in a new issue