Skip to content

Fix some issues in handling of withoutActuallyEscaping. #9695

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 18, 2017
Merged

Fix some issues in handling of withoutActuallyEscaping. #9695

merged 1 commit into from
May 18, 2017

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented May 17, 2017

We need to strip inout/lvalue before casting the second parameter's type
to FunctionType.

There were also some verification issues and the fact that we weren't
allowing already-escaping closures to be passed to it (which is not
useful, but shouldn't result in an error and really awful
diagnostic). We can potentially look at diagnosing this with a warning
at some point in the future.

Fixes rdar://problem/32239354.

@rudkx rudkx requested a review from jckarter May 17, 2017 16:13
@rudkx
Copy link
Contributor Author

rudkx commented May 17, 2017

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented May 17, 2017

One failure related to the verification I changed. I'll need to take a closer look.

We need to strip inout/lvalue before casting the second parameter's type
to FunctionType.

There were also some verification issues and the fact that we weren't
allowing already-escaping closures to be passed to it (which is not
useful, but shouldn't result in an error and really awful
diagnostic). We can potentially look at diagnosing this with a warning
at some point in the future.

Fixes rdar://problem/32239354.
@rudkx
Copy link
Contributor Author

rudkx commented May 18, 2017

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented May 18, 2017

@swift-ci Please test source compatibility

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented May 18, 2017

@swift-ci Please test source compatibility

@rudkx rudkx merged commit 9939306 into swiftlang:master May 18, 2017
@rudkx rudkx deleted the fix-rdar32239354 branch May 22, 2017 14:41
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.

1 participant