Provide a segment res in more cases
This commit is contained in:
parent
0887113991
commit
f924e74fb1
14 changed files with 116 additions and 115 deletions
|
@ -1502,6 +1502,7 @@ impl<'a> Resolver<'a> {
|
|||
return PathResult::NonModule(PartialRes::new(Res::Err));
|
||||
} else if opt_ns.is_some() && (is_last || maybe_assoc) {
|
||||
self.lint_if_path_starts_with_module(finalize, path, second_binding);
|
||||
record_segment_res(self, res);
|
||||
return PathResult::NonModule(PartialRes::with_unresolved_segments(
|
||||
res,
|
||||
path.len() - i - 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue