Skip to content

[stdlib] Renames and tests for Swift 3 compatibility mode #9949

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 30, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented May 26, 2017

Addresses rdar://problem/32432481

Addresses <rdar://problem/32432481>
@moiseev
Copy link
Contributor Author

moiseev commented May 26, 2017

@swift-ci Please smoke test

@moiseev
Copy link
Contributor Author

moiseev commented May 26, 2017

@swift-ci Please Test Source Compatibility

@moiseev
Copy link
Contributor Author

moiseev commented May 26, 2017

@jrose-apple This re-introduces the message from #9949. Does this one look better?


func signedIntegerMaskingArithmetics<T : SignedInteger>(x: T) {
_ = x &+ x // expected-error {{use 'FixedWidthInteger' instead of 'SignedInteger' to get '&+' in generic code}}
_ = x &- x // expected-error {{use 'FixedWidthInteger' instead of 'SignedInteger' to get '&-' in generic code}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrose-apple here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember what my original concern was (your link is to this PR, not whatever we talked about before). This looks fine to me now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh... This is the right one: #9045. The concern was about the message not being very clear.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, I like the new message a lot better. Thanks, Max!

@moiseev moiseev requested a review from nkcsgexi May 26, 2017 23:31
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the rename attributes. LGTM!

@moiseev moiseev merged commit 6c836db into swiftlang:master May 30, 2017
@moiseev moiseev deleted the renames branch May 30, 2017 17:26
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