add a fixme
This commit is contained in:
parent
1b783e33e9
commit
ac64967872
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user