aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-17 22:16:28 +0100
committerGitHub <[email protected]>2019-09-17 22:16:28 +0100
commit54379ec6f8f82a470a275771e70825634d3d553b (patch)
tree498719aafe633f9eb9cb65ba65932076981e4632 /crates/ra_cli
parentd505ee968b2a99eed65dfe7be27940ad9b2647c1 (diff)
parentc2f9558e1af8dbf73ff86eeffcb9ea6940947dd6 (diff)
Merge #1862
1862: Assoc item resolution refactoring (again) r=flodiebold a=flodiebold This is #1849, with the associated type selection code removed for now. Handling cycles there will need some more thought. Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_cli')
-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 8f4ce42da..6b1e44a2c 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -1,7 +1,7 @@
1use std::{collections::HashSet, fmt::Write, path::Path, time::Instant}; 1use std::{collections::HashSet, fmt::Write, path::Path, time::Instant};
2 2
3use ra_db::SourceDatabase; 3use ra_db::SourceDatabase;
4use ra_hir::{Crate, HasBodySource, HasSource, HirDisplay, ImplItem, ModuleDef, Ty, TypeWalk}; 4use ra_hir::{AssocItem, Crate, HasBodySource, HasSource, HirDisplay, ModuleDef, Ty, TypeWalk};
5use ra_syntax::AstNode; 5use ra_syntax::AstNode;
6 6
7use crate::{Result, Verbosity}; 7use crate::{Result, Verbosity};
@@ -47,7 +47,7 @@ pub fn run(
47 for impl_block in module.impl_blocks(db) { 47 for impl_block in module.impl_blocks(db) {
48 for item in impl_block.items(db) { 48 for item in impl_block.items(db) {
49 num_decls += 1; 49 num_decls += 1;
50 if let ImplItem::Method(f) = item { 50 if let AssocItem::Function(f) = item {
51 funcs.push(f); 51 funcs.push(f);
52 } 52 }
53 } 53 }