-
Notifications
You must be signed in to change notification settings - Fork 469
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
Conversation
29bbd16
to
184c6c2
Compare
@swift-ci Please test linux |
@gparker42 Here's the second fix. |
184c6c2
to
95875d7
Compare
@swift-ci Please test linux |
1 similar comment
@swift-ci Please test linux |
@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. |
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 |
There was a problem hiding this comment.
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.
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
And finally,
along with I can create a new PR with this changes if you want. Just let me know. Thanks! |
Attempt to update for SE-0103 (@NoEscape by default) Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
No description provided.