1
Fork 0

Rollup merge of #137920 - RalfJung:provenance-map-emptiness, r=oli-obk

interpret/provenance_map: consistently use range_is_empty

https://github.com/rust-lang/rust/pull/137704 started using this for per-ptr provenance; let's be consistent and use it also for the per-byte provenance check. Also rename the methods to avoid having both "get" and "is_empty" in the name.

r? ````@oli-obk````
This commit is contained in:
Michael Goulet 2025-03-06 12:22:27 -05:00 committed by GitHub
commit d21fc9d4f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 22 deletions

View file

@ -470,7 +470,7 @@ impl<Prov: Provenance, Extra, Bytes: AllocBytes> Allocation<Prov, Extra, Bytes>
// Find the provenance.
let (offset, _prov) = self
.provenance
.range_get_ptrs(range, cx)
.range_ptrs_get(range, cx)
.first()
.copied()
.expect("there must be provenance somewhere here");