Skip to content

Attempt to update for SE-0103 (@noescape by default) #154

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
Aug 18, 2016

Conversation

slavapestov
Copy link
Contributor

No description provided.

@slavapestov
Copy link
Contributor Author

@swift-ci Please test linux

@slavapestov
Copy link
Contributor Author

@gparker42 Here's the second fix.

@slavapestov
Copy link
Contributor Author

@swift-ci Please test linux

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please test linux

@slavapestov
Copy link
Contributor Author

@gonzalolarralde Do you mind reviewing this? It builds upon your previous patch by properly marking all functions that previously were not @NoEscape as @escaping. Otherwise, almost everything becomes non-escaping, since that's the default.

@slavapestov slavapestov merged commit 1a7ff3f into swiftlang:master Aug 18, 2016
@dgrove-oss
Copy link
Contributor

does this need to go to the Swift3 branch as well?

execute work: @noescape () throws -> T,
rescue: ((Swift.Error) throws -> (T))) rethrows -> T
execute work: () throws -> T,
rescue: @escaping ((Swift.Error) throws -> (T))) rethrows -> T
Copy link
Contributor

Choose a reason for hiding this comment

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

I think rescue could be @noescape. I can't see nothing keeping a reference to it.

@gonzalolarralde
Copy link
Contributor

Hi @slavapestov, sorry my patch wasn't complete at that time. The changes in this PR makes total sense to me.

I took a look on the rest of the project and I found the following declarations that were @escaping (default, actually) before SE-0103 and that I think they should remain @escaping.

And finally,

along with

I can create a new PR with this changes if you want. Just let me know.

Thanks!

das pushed a commit that referenced this pull request Feb 21, 2017
Attempt to update for SE-0103 (@NoEscape by default)

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
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.

5 participants