-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[NFC] Add some span unit tests for bounds check optimizations #79129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c8827c0
to
9c3329f
Compare
@swift-ci test |
9c3329f
to
fe6085f
Compare
fe6085f
to
df6f4f2
Compare
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glessard may want to review the SpanExtras.
I briefly scanned the test cases. Looks good. It makes sense to start with BitwiseCopyable. But should we eventually have non-trivial or even generic elements types?
@_unsafeNonescapableResult | ||
@inlinable @inline(__always) | ||
@lifetime(borrow source) | ||
public func _overrideLifetime< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful to use the same syntax for _overrideLifetime everywhere. We should copy the standard library's implementation. I always spend a lot of time adapting code from @glessard because he hasn't updated his repos yet.
_overrideLifetime(_:borrowing)
_overrideLifetime(_:copying)
_overrideLifetime(_:mutating)
df6f4f2
to
24547bb
Compare
@swift-ci smoke test |
24547bb
to
d8aa678
Compare
@swift-ci smoke test |
1 similar comment
@swift-ci smoke test |
d8aa678
to
3da2b90
Compare
@swift-ci smoke test |
@swift-ci smoke test windows platform |
I'm not sure why the PR test passed here. Attempting to fix it: |
Add swift unit tests for testing bounds check optimizations for Span.