diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-25 17:12:15 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-11-25 18:47:16 +0000 |
| commit | 079a2e865fbe8d3a0050afdfcd5498c075611e36 (patch) | |
| tree | 2429762abd37b7e23e07f3211995c3f180be85ee /compiler/rustc_resolve/src/late | |
| parent | fe3038f263349190f02491d7467198e17ffb0858 (diff) | |
| download | rust-079a2e865fbe8d3a0050afdfcd5498c075611e36.tar.gz rust-079a2e865fbe8d3a0050afdfcd5498c075611e36.zip | |
is_{some,ok}_and
Diffstat (limited to 'compiler/rustc_resolve/src/late')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index 326fd3b2005..8316102b507 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -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)) |
