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

Fix Swift 5.3 trailing closure warnings #2485

Merged
merged 2 commits into from Sep 21, 2020
Merged

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Aug 28, 2020

Fixes warnings about trailing closure matching behavior changes in Swift 5.3 (#2485, #2484).

@tanner0101
Copy link
Member Author

Round 2 using a different method. This fixes forward scan trailing closure matching with response-only overload. As recommended by Holly on Swift forums and Grundoon. Thanks!

@tanner0101 tanner0101 added enhancement New feature or request semver-patch Internal changes only labels Aug 28, 2020
@tanner0101 tanner0101 added this to Awaiting Review in Vapor 4 via automation Aug 28, 2020
@Mordil
Copy link
Member

Mordil commented Sep 18, 2020

@tanner0101 Do we know what's causing the thread sanitizer failures?

@Mordil
Copy link
Member

Mordil commented Sep 18, 2020

Ah, it looks like the compiler failed to capture that it was going to recursively call itself because of the function signature.

I've added a commit that fixes this

@MrLotU MrLotU merged commit 1f8e3ce into master Sep 21, 2020
Vapor 4 automation moved this from Awaiting Review to Done Sep 21, 2020
@MrLotU MrLotU deleted the tn-closure-matching-2 branch September 21, 2020 10:02
@tanner0101
Copy link
Member Author

These changes are now available in 4.29.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-patch Internal changes only
Projects
Vapor 4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants