There was an error while loading. Please reload this page.
2 parents 49116c6 + 4ab9329 commit 6e2abbfCopy full SHA for 6e2abbf
1 file changed
src/tools/rust-analyzer/crates/ide-completion/src/completions/expr.rs
@@ -147,7 +147,10 @@ pub(crate) fn complete_expr_path(
147
});
148
match resolution {
149
hir::PathResolution::Def(hir::ModuleDef::Module(module)) => {
150
-let module_scope = module.scope(ctx.db,Some(ctx.module));
+// Set visible_from to None so private items are returned.
151
+// They will be possibly filtered out in add_path_resolution()
152
+// via def_is_visible().
153
+let module_scope = module.scope(ctx.db,None);
154
for(name, def)in module_scope {
155
ifscope_def_applicable(def){
156
acc.add_path_resolution(
0 commit comments