Merge pull request #19961 from geoffw0/locspeed

Rust: Speed up use of Location.contains
This commit is contained in:
Geoffrey White
2025-07-03 10:16:39 +01:00
committed by GitHub

View File

@@ -133,7 +133,8 @@ module LocationImpl {
* Holds if this location contains location `that`, meaning that it starts
* before and ends after it.
*/
pragma[inline]
bindingset[this, that]
pragma[inline_late]
predicate contains(Location that) { this.startsBefore(that) and this.endsAfter(that) }
/**