aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/nameres/collector.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres/collector.rs b/crates/ra_hir/src/nameres/collector.rs
index 9992e054d..12ed49a0a 100644
--- a/crates/ra_hir/src/nameres/collector.rs
+++ b/crates/ra_hir/src/nameres/collector.rs
@@ -136,8 +136,7 @@ where
136 .as_ident() 136 .as_ident()
137 .expect("extern crate should have been desugared to one-element path"), 137 .expect("extern crate should have been desugared to one-element path"),
138 ); 138 );
139 // FIXME: why do we return No here? 139 (res, ReachedFixedPoint::Yes)
140 (res, if res.is_none() { ReachedFixedPoint::No } else { ReachedFixedPoint::Yes })
141 } else { 140 } else {
142 let res = 141 let res =
143 self.def_map.resolve_path_fp(self.db, ResolveMode::Import, module_id, &import.path); 142 self.def_map.resolve_path_fp(self.db, ResolveMode::Import, module_id, &import.path);