Skip to content

[4.2] Use withUnsafeMutableBufferPointer in NSData test. #1553

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

Merged
merged 1 commit into from
May 16, 2018
Merged

[4.2] Use withUnsafeMutableBufferPointer in NSData test. #1553

merged 1 commit into from
May 16, 2018

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented May 16, 2018

This ensures that:

(cherry picked from commit b1a9c73)

This ensures that:
- We produce a well scoped stable pointer for the duration of the use.

- We aren't attempting to do an implicit conversion from an array to
  pointer in an argument position which is an autoclosure result,
  which is now disallowed in
  swiftlang/swift#16623.

(cherry picked from commit b1a9c73)
@rudkx
Copy link
Contributor Author

rudkx commented May 16, 2018

@swift-ci Please test

@rudkx rudkx merged commit caca409 into swiftlang:swift-4.2-branch May 16, 2018
@rudkx rudkx deleted the fix-nsdata-test-4.2 branch May 16, 2018 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants