Skip to content

Commit

Permalink
Auto merge of #109348 - cjgillot:issue-109146, r=petrochenkov
Browse files Browse the repository at this point in the history
Resolve visibility paths as modules not as types.

Asking for a resolution with `opt_ns = Some(TypeNS)` allows path resolution to look for type-relative paths, leaving unresolved segments behind. However, for visibility paths we really need to look for a module, so we need to pass `opt_ns = None`.

Fixes rust-lang/rust#109146

r? `@petrochenkov`
  • Loading branch information
bors committed Aug 5, 2023
2 parents 2e87296 + 0556996 commit 6b28b06
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6b28b06

Please sign in to comment.