aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-02-16 20:09:58 +0000
committerFlorian Diebold <[email protected]>2019-02-16 21:08:13 +0000
commit0242acae5388188c06d826f4aed41eee3e91d018 (patch)
tree0e6b42eaaa3228d7af8d54355d034e698db5c743 /crates/ra_cli/src
parent6932b77093fd444def066e80ed37defa2742f2a9 (diff)
Turn ImplBlock into a copy type just containing IDs
This makes it more like the other code model types. Also make Module::definition_source/declaration_source return HirFileIds, to make them more like the other source functions.
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs
index a46ac974d..ee410c548 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -36,10 +36,10 @@ pub fn run(verbose: bool) -> Result<()> {
36 } 36 }
37 37
38 for impl_block in module.impl_blocks(&db) { 38 for impl_block in module.impl_blocks(&db) {
39 for item in impl_block.items() { 39 for item in impl_block.items(&db) {
40 num_decls += 1; 40 num_decls += 1;
41 match item { 41 match item {
42 ImplItem::Method(f) => funcs.push(*f), 42 ImplItem::Method(f) => funcs.push(f),
43 _ => {} 43 _ => {}
44 } 44 }
45 } 45 }