1
Fork 0

Resolve visibility paths as modules not as types.

This commit is contained in:
Camille GILLOT 2023-03-19 10:46:19 +00:00
parent 7a5d2d0138
commit 2faa2626cc
6 changed files with 27 additions and 7 deletions

View file

@ -278,7 +278,7 @@ impl<'a, 'b, 'tcx> BuildReducedGraphVisitor<'a, 'b, 'tcx> {
};
match self.r.resolve_path(
&segments,
Some(TypeNS),
None,
parent_scope,
finalize.then(|| Finalize::new(id, path.span)),
None,