add a fixme
This commit is contained in:
parent
1b783e33e9
commit
ac64967872
@ -323,6 +323,8 @@ impl CrateDefMap {
|
|||||||
(res.resolved_def, res.segment_index)
|
(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(
|
pub(crate) fn find_macro(
|
||||||
&self,
|
&self,
|
||||||
db: &impl DefDatabase,
|
db: &impl DefDatabase,
|
||||||
|
@ -148,8 +148,8 @@ impl Resolver {
|
|||||||
PathResult::from_resolution(self.resolve_name(db, &Name::self_param()))
|
PathResult::from_resolution(self.resolve_name(db, &Name::self_param()))
|
||||||
} else {
|
} else {
|
||||||
let (item_map, module) = match self.module() {
|
let (item_map, module) = match self.module() {
|
||||||
Some(m) => m,
|
Some(it) => it,
|
||||||
_ => return PathResult::empty(),
|
None => return PathResult::empty(),
|
||||||
};
|
};
|
||||||
let (module_res, segment_index) = item_map.resolve_path(db, module, path);
|
let (module_res, segment_index) = item_map.resolve_path(db, module, path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user