diff --git a/crates/hir-def/src/db.rs b/crates/hir-def/src/db.rs index ffd39925874..678b0fcb7ed 100644 --- a/crates/hir-def/src/db.rs +++ b/crates/hir-def/src/db.rs @@ -93,8 +93,6 @@ pub trait DefDatabase: InternDatabase + ExpandDatabase + Upcast Arc; diff --git a/crates/ide-db/src/lib.rs b/crates/ide-db/src/lib.rs index 12b6e3c4bb8..1235449b803 100644 --- a/crates/ide-db/src/lib.rs +++ b/crates/ide-db/src/lib.rs @@ -166,6 +166,12 @@ pub fn update_lru_capacities(&mut self, lru_capacities: &FxHashMap, usi .copied() .unwrap_or(base_db::DEFAULT_LRU_CAP), ); + hir_db::MacroExpandQuery.in_db_mut(self).set_lru_capacity( + lru_capacities + .get(stringify!(MacroExpandQuery)) + .copied() + .unwrap_or(base_db::DEFAULT_LRU_CAP), + ); macro_rules! update_lru_capacity_per_query { ($( $module:ident :: $query:ident )*) => {$(