add a fixme

This commit is contained in:
Aleksey Kladov 2019-06-08 14:55:25 +03:00
parent 1b783e33e9
commit ac64967872
2 changed files with 4 additions and 2 deletions

View File

@ -323,6 +323,8 @@ impl CrateDefMap {
(res.resolved_def, res.segment_index)
}
// FIXME: This seems to do the same work as `resolve_path_with_macro`, but
// using a completely different code path. Seems bad, huh?
pub(crate) fn find_macro(
&self,
db: &impl DefDatabase,

View File

@ -148,8 +148,8 @@ impl Resolver {
PathResult::from_resolution(self.resolve_name(db, &Name::self_param()))
} else {
let (item_map, module) = match self.module() {
Some(m) => m,
_ => return PathResult::empty(),
Some(it) => it,
None => return PathResult::empty(),
};
let (module_res, segment_index) = item_map.resolve_path(db, module, path);