respect doc(hidden) when suggesting available fields
This commit is contained in:
parent
cbaeec14f9
commit
32ab0b88f4
3 changed files with 44 additions and 0 deletions
|
@ -1794,6 +1794,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
.1;
|
||||
field.vis.is_accessible_from(def_scope, self.tcx)
|
||||
})
|
||||
.filter(|field| !self.tcx.is_doc_hidden(field.did))
|
||||
.map(|field| field.name)
|
||||
.collect()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue