We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2de8165 commit 49b6798Copy full SHA for 49b6798
rust/extractor/src/crate_graph.rs
@@ -175,7 +175,7 @@ fn emit_module_items(
175
let mut items = Vec::new();
176
let item_scope = &module.scope;
177
for (name, item) in item_scope.entries() {
178
- let def = item.with_visibility(ra_ap_hir::Visibility::Public);
+ let def = item.filter_visibility(|x| matches!(x, ra_ap_hir::Visibility::Public));
179
if let Some(ra_ap_hir_def::per_ns::Item {
180
def: value,
181
vis,
0 commit comments