diff options
| author | Yotam Ofek <yotam.ofek@gmail.com> | 2025-01-19 20:50:43 +0000 |
|---|---|---|
| committer | Yotam Ofek <yotam.ofek@gmail.com> | 2025-01-19 20:50:43 +0000 |
| commit | 1951d86a35c2b7d5c5434493f1897425cbfd8e96 (patch) | |
| tree | 121cbac15f8e423bb4e8d75a0dd4c736d37436ae /compiler/rustc_middle/src/mir/interpret/allocation | |
| parent | 264fa0fc5430f3a9a52a92df706d7c9ac5af4f85 (diff) | |
| download | rust-1951d86a35c2b7d5c5434493f1897425cbfd8e96.tar.gz rust-1951d86a35c2b7d5c5434493f1897425cbfd8e96.zip | |
Manual cleanup of some `is_{or_none|some_and}` usages
Diffstat (limited to 'compiler/rustc_middle/src/mir/interpret/allocation')
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs b/compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs index ab4d59185a5..78196b05361 100644 --- a/compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs +++ b/compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs @@ -97,7 +97,7 @@ impl<Prov: Provenance> ProvenanceMap<Prov> { debug_assert!(prov.len() <= 1); if let Some(entry) = prov.first() { // If it overlaps with this byte, it is on this byte. - debug_assert!(self.bytes.as_ref().is_none_or(|b| b.get(&offset).is_none())); + debug_assert!(self.bytes.as_ref().is_none_or(|b| !b.contains_key(&offset))); Some(entry.1) } else { // Look up per-byte provenance. |
