is_{some,ok}_and
This commit is contained in:
parent
fe3038f263
commit
079a2e865f
8 changed files with 21 additions and 13 deletions
|
@ -1869,7 +1869,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
),
|
||||
};
|
||||
|
||||
fields.map_or(false, |fields| {
|
||||
fields.is_some_and(|fields| {
|
||||
fields
|
||||
.iter()
|
||||
.filter(|vis| !self.r.is_accessible_from(**vis, self.parent_scope.module))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue