aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r--crates/ra_hir/src/ty.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index ae595c16d..34f9ccd07 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -1170,6 +1170,13 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
1170 1170
1171 let (def, remaining_index) = resolved.into_inner(); 1171 let (def, remaining_index) = resolved.into_inner();
1172 1172
1173 log::debug!(
1174 "path {:?} resolved to {:?} with remaining index {:?}",
1175 path,
1176 def,
1177 remaining_index
1178 );
1179
1173 // if the remaining_index is None, we expect the path 1180 // if the remaining_index is None, we expect the path
1174 // to be fully resolved, in this case we continue with 1181 // to be fully resolved, in this case we continue with
1175 // the default by attempting to `take_values´ from the resolution. 1182 // the default by attempting to `take_values´ from the resolution.
@@ -1191,6 +1198,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
1191 // if we have more segments to process 1198 // if we have more segments to process
1192 let segment = &path.segments[remaining_index]; 1199 let segment = &path.segments[remaining_index];
1193 1200
1201 log::debug!("looking for path segment: {:?}", segment);
1202
1194 // Attempt to find an impl_item for the type which has a name matching 1203 // Attempt to find an impl_item for the type which has a name matching
1195 // the current segment 1204 // the current segment
1196 let ty = ty.iterate_impl_items(self.db, |item| match item { 1205 let ty = ty.iterate_impl_items(self.db, |item| match item {