mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Merge branch 'master' into sync-from-rust
This commit is contained in:
commit
57172f7b94
1 changed files with 5 additions and 1 deletions
|
@ -122,7 +122,11 @@ fn collect_import_map(db: &dyn DefDatabase, krate: CrateId) -> ImportMapIndex {
|
||||||
|
|
||||||
let visible_items = mod_data.scope.entries().filter_map(|(name, per_ns)| {
|
let visible_items = mod_data.scope.entries().filter_map(|(name, per_ns)| {
|
||||||
let per_ns = per_ns.filter_visibility(|vis| vis == Visibility::Public);
|
let per_ns = per_ns.filter_visibility(|vis| vis == Visibility::Public);
|
||||||
if per_ns.is_none() { None } else { Some((name, per_ns)) }
|
if per_ns.is_none() {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some((name, per_ns))
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
for (name, per_ns) in visible_items {
|
for (name, per_ns) in visible_items {
|
||||||
|
|
Loading…
Reference in a new issue