Skip to content
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

[4.0] Fix another subtle SE-0110-related break. #10848

Merged
merged 1 commit into from Jul 11, 2017
Merged

[4.0] Fix another subtle SE-0110-related break. #10848

merged 1 commit into from Jul 11, 2017

Conversation

rudkx
Copy link
Member

@rudkx rudkx commented Jul 10, 2017

The change to roll back a part of SE-0110 to allow multi-argument
functions to be passed in places where functions taking a tuple are
expected resulted in a regression in some cases where the fix would
strip off the last ParenType from single-argument functions.

Instead of stripping off parens from both function types we're trying to
match when they both have them, strip off none. This ensures that we
don't get summarily rejected in the nested matchTypes call by other
SE-0110-related code that bails if the two types do not have the same
"parenness".

Fixes rdar://problem/33043106 / SR-5387.

@rudkx rudkx requested a review from DougGregor July 10, 2017 19:05
@rudkx rudkx changed the title Fix another subtle SE-0110-related break. [4.0] Fix another subtle SE-0110-related break. Jul 10, 2017
@rudkx rudkx requested a review from slavapestov July 10, 2017 19:06
@rudkx
Copy link
Member Author

rudkx commented Jul 10, 2017

@swift-ci Please test

@rudkx
Copy link
Member Author

rudkx commented Jul 10, 2017

@swift-ci Please test source compatibility

@swift-ci
Copy link
Collaborator

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 5472a8ff52c459e96add9290cd87a62ec121a028
Test requested by - @rudkx

The change to roll back a part of SE-0110 to allow multi-argument
functions to be passed in places where functions taking a tuple are
expected resulted in a regression in some cases where the fix would
strip off the last ParenType from single-argument functions.

Instead of stripping off parens from both function types we're trying to
match when they both have them, strip off none. This ensures that we
don't get summarily rejected in the nested matchTypes call by other
SE-0110-related code that bails if the two types do not have the same
"parenness".

Fixes rdar://problem/33043106 / SR-5387.

(cherry picked from commit acfa800341785ee73548369a4456118365005002)
@rudkx
Copy link
Member Author

rudkx commented Jul 10, 2017

@swift-ci Please test

@swift-ci
Copy link
Collaborator

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 5472a8ff52c459e96add9290cd87a62ec121a028
Test requested by - @rudkx

@rudkx
Copy link
Member Author

rudkx commented Jul 10, 2017

@swift-ci Please test

@rudkx
Copy link
Member Author

rudkx commented Jul 10, 2017

@swift-ci Please test source compatibility

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

Already approved the master version of this

@rudkx
Copy link
Member Author

rudkx commented Jul 11, 2017

@swift-ci Please test source compatibility

@rudkx rudkx merged commit bd42a0a into apple:swift-4.0-branch Jul 11, 2017
@rudkx rudkx deleted the fix-rdar33043106-4.0 branch July 11, 2017 04:58
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.

None yet

3 participants