Skip to content

Conversation

@atrick
Copy link
Contributor

@atrick atrick commented Oct 4, 2016

The "mutating" keyword should not have been on this API. The example
code in SE-0138 uses it as a nonmutating API.

(The mutating keyword was a temporary workaround that should never
have been carried over to the swift-3.0-branch).

rdar://28614519 [swift-3.0-branch] Remove "mutating" keyword from Array.withUnsafeBytes

The "mutating" keyword should not have been on this API. The example
code in SE-0138 uses it as a nonmutating API.

(The mutating keyword was a temporary workaround that should never
have been carried over to the swift-3.0-branch).

<rdar://28614519> [swift-3.0-branch] Remove "mutating" keyword from Array.withUnsafeBytes
@atrick
Copy link
Contributor Author

atrick commented Oct 4, 2016

@dabrahams Please review.

@atrick
Copy link
Contributor Author

atrick commented Oct 4, 2016

@swift-ci test.

@moiseev
Copy link
Contributor

moiseev commented Oct 4, 2016

LGTM. Interestingly, the code in the doc comment would not compile with mutating.

@atrick
Copy link
Contributor Author

atrick commented Oct 4, 2016

Thanks @moiseev. Can you give this a thumbs up for Swift 3?

@moiseev
Copy link
Contributor

moiseev commented Oct 4, 2016

That's what I used LGTM for. But here is the formal :shipit:.

@atrick
Copy link
Contributor Author

atrick commented Oct 4, 2016

CCC
• Explanation: A new API will be introduced in Swift 3. This change fixes a detail in that newly introduced API.
• Scope of Issue: This doesn't affect current users, because the API was just introduced.
• Origination: SE-0138: UnsafeRawBufferPointer.
• Risk: None
• Reviewed By: @moiseev
• Testing: test/stdlib/UnsafeRawBufferPointer.swift
• Directions for QE: None

@ematejska ematejska merged commit 3a153ad into swiftlang:swift-3.0-branch Oct 5, 2016
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.

3 participants