diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-16 21:10:26 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-16 21:10:26 +0000 |
commit | edd4c1d8a6c270fe39ae881c23c722c658c87c32 (patch) | |
tree | 0e6b42eaaa3228d7af8d54355d034e698db5c743 /crates/ra_cli | |
parent | 6932b77093fd444def066e80ed37defa2742f2a9 (diff) | |
parent | 0242acae5388188c06d826f4aed41eee3e91d018 (diff) |
Merge #842
842: Turn ImplBlock into a copy type just containing IDs r=matklad a=flodiebold
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.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_cli')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 4 |
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 | } |