Revert "eagarly clean astd maps"

This reverts commit 6c63a59425.

This causes massive slowdowns: looks like we accidentally have some source-depndent
This commit is contained in:
Aleksey Kladov 2019-05-04 15:26:55 +03:00
parent b1febf2e6d
commit 8876f44054
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ pub trait DefDatabase: SourceDatabase {
#[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)]
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
#[salsa::invoke(crate::source_id::AstIdMap::ast_id_to_node_query)]
#[salsa::invoke(crate::source_id::AstIdMap::file_item_query)]
fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>;
#[salsa::invoke(RawItems::raw_items_query)]

View File

@ -92,7 +92,7 @@ pub(crate) fn ast_id_map_query(db: &impl DefDatabase, file_id: HirFileId) -> Arc
Arc::new(AstIdMap::from_source_file(&source_file))
}
pub(crate) fn ast_id_to_node_query(
pub(crate) fn file_item_query(
db: &impl DefDatabase,
file_id: HirFileId,
ast_id: ErasedFileAstId,

View File

@ -674,7 +674,7 @@ Grammar(
"LifetimeArg": (),
"MacroItems": (
traits: [ "ModuleItemOwner", "FnDefOwner" ],
traits: [ "ModuleItemOwner", "FnDefOwner" ],
),
"MacroStmts" : (