mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Slightly shrink DefMap
This commit is contained in:
parent
117f9b7752
commit
dc7c6d43c7
22 changed files with 130 additions and 92 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::{fmt, marker::PhantomData};
|
||||
|
||||
use hir::{
|
||||
db::{AstIdMapQuery, AttrsQuery, ParseMacroExpansionQuery},
|
||||
db::{AstIdMapQuery, AttrsQuery, BlockDefMapQuery, ParseMacroExpansionQuery},
|
||||
Attr, Attrs, ExpandResult, MacroFile, Module,
|
||||
};
|
||||
use ide_db::{
|
||||
|
@ -51,6 +51,7 @@ pub(crate) fn status(db: &RootDatabase, file_id: Option<FileId>) -> String {
|
|||
format_to!(buf, "\nDebug info:\n");
|
||||
format_to!(buf, "{}\n", collect_query(AttrsQuery.in_db(db)));
|
||||
format_to!(buf, "{} ast id maps\n", collect_query_count(AstIdMapQuery.in_db(db)));
|
||||
format_to!(buf, "{} block def maps\n", collect_query_count(BlockDefMapQuery.in_db(db)));
|
||||
|
||||
if let Some(file_id) = file_id {
|
||||
format_to!(buf, "\nFile info:\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue