-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Change the signature for DispatchData.enumerateBytes() to match that … #17982
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
Change the signature for DispatchData.enumerateBytes() to match that … #17982
Conversation
@swift-ci: please smoke test |
The code looks good. I wonder if it's worth adding an explicit test that runs in 4.2 mode, so that you can check that the new signature is working too. |
} | ||
nextIndex = offset + ptr.count | ||
}) | ||
#endif |
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.
I suggest a trailing closure test that's expected to work in both language modes, too.
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.
Added that test and squashed commits.
…of Data.enumerateBytes() for Swift 4.2 and obsolete the old version. rdar://problem/40775762
4d73bb6
to
7b0991f
Compare
@swift-ci please test |
Build failed |
@swift-ci please smoke test |
Build failed |
Note for next time: the regular tests include the smoke tests, so you don't actually have to run both. |
…of Data.enumerateBytes() for Swift 4.2 and obsolete the old version.
rdar://problem/40775762
Adds overload DispatchData.enumerateBytes(_:) to match the signature used in Data and make it available as of Swift 4.2. Also obsoletes the existing version.
Resolves SR-7868.