about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/build_reduced_graph.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-03-19 10:46:19 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-08-02 15:30:24 +0000
commit2faa2626ccb9fa163c0c890657d26e98ba04ed7c (patch)
tree86a75c0ea53f844b05e8083b8c4c57b3e57b0787 /compiler/rustc_resolve/src/build_reduced_graph.rs
parent7a5d2d0138d4a3d7d97cad0ca72ab62e938e0b0b (diff)
downloadrust-2faa2626ccb9fa163c0c890657d26e98ba04ed7c.tar.gz
rust-2faa2626ccb9fa163c0c890657d26e98ba04ed7c.zip
Resolve visibility paths as modules not as types.
Diffstat (limited to 'compiler/rustc_resolve/src/build_reduced_graph.rs')
-rw-r--r--compiler/rustc_resolve/src/build_reduced_graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs
index 2f432799022..80d6a47ff53 100644
--- a/compiler/rustc_resolve/src/build_reduced_graph.rs
+++ b/compiler/rustc_resolve/src/build_reduced_graph.rs
@@ -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,