mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This allows us to eliminate a comparison; https://github.com/swiftlang/swift/pull/83172 will allow the compiler to do it for us instead in the future. **Explanation:** Changes the implementation of Span's subscript bounds checks to use a single unsigned comparison instead of two signed compares. **Scope:** Narrow. Does not apply to any other API. **Issues:** rdar://156068535 **Original PRs:** https://github.com/swiftlang/swift/pull/83150 **Risk:** Low. Minor implementation tweaks to API that is not widely adopted. **Testing:** CI **Reviewers:** @glessard @meg-gupta