We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a493b1 commit 4ab9329Copy full SHA for 4ab9329
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
if scope_def_applicable(def) {
156
acc.add_path_resolution(
0 commit comments