Add firewall query to lang items

With an intermediate query, changing one module won't cause reparsing
of all modules
This commit is contained in:
Aleksey Kladov 2019-06-19 23:46:50 +03:00
parent 09864b3b21
commit bcff61257a
3 changed files with 38 additions and 17 deletions

View file

@ -282,7 +282,7 @@ impl Module {
.collect()
}
pub fn impl_blocks(self, db: &impl HirDatabase) -> Vec<ImplBlock> {
pub fn impl_blocks(self, db: &impl DefDatabase) -> Vec<ImplBlock> {
let module_impl_blocks = db.impls_in_module(self);
module_impl_blocks
.impls