diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-24 09:41:32 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-24 09:41:32 +0000 |
commit | cfb085ded8d61d7b744d0a83ecbb3da254f6ab9f (patch) | |
tree | 18b34194e0d01f5c186bc69f50879c568237dcf0 /crates/ra_ide_api/src/status.rs | |
parent | 6a0a4a564accb12b48e703245655e3e3a0637445 (diff) | |
parent | 9fe09db771aa3890ac8a0eeb1d9e6097060fad06 (diff) |
Merge #624
624: encapsulate hir locations r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/status.rs')
-rw-r--r-- | crates/ra_ide_api/src/status.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/status.rs b/crates/ra_ide_api/src/status.rs index d3e04be23..5c14cbdeb 100644 --- a/crates/ra_ide_api/src/status.rs +++ b/crates/ra_ide_api/src/status.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | use ra_db::{ | 1 | use ra_db::{ |
2 | LocationIntener, SourceFileQuery, | 2 | SourceFileQuery, |
3 | salsa::{Database, debug::DebugQueryTable}, | 3 | salsa::{Database, debug::DebugQueryTable}, |
4 | }; | 4 | }; |
5 | 5 | ||
@@ -8,7 +8,7 @@ use crate::db::RootDatabase; | |||
8 | pub(crate) fn status(db: &RootDatabase) -> String { | 8 | pub(crate) fn status(db: &RootDatabase) -> String { |
9 | let n_parsed_files = db.query(SourceFileQuery).keys::<Vec<_>>().len(); | 9 | let n_parsed_files = db.query(SourceFileQuery).keys::<Vec<_>>().len(); |
10 | let n_defs = { | 10 | let n_defs = { |
11 | let interner: &LocationIntener<hir::DefLoc, hir::DefId> = db.as_ref(); | 11 | let interner: &hir::HirInterner = db.as_ref(); |
12 | interner.len() | 12 | interner.len() |
13 | }; | 13 | }; |
14 | format!("#n_parsed_files {}\n#n_defs {}\n", n_parsed_files, n_defs) | 14 | format!("#n_parsed_files {}\n#n_defs {}\n", n_parsed_files, n_defs) |