Skip to content

Conversation

@czechboy0
Copy link
Collaborator

Motivation

Unfortunately until we adopt 5.9, adding ExistentialAny on upstream packages has unintended consequences for some downstream packages, so disabling for now. Details in apple/swift-openapi-generator#120

Modifications

Disabled the feature enforcement, but the code changes are there, so downstream adopters can still use them.

Result

We won't be seeing the issue described in apple/swift-openapi-generator#120.

Test Plan

PR CI, which discovered the original issue.

@czechboy0 czechboy0 requested a review from simonjbeaumont July 17, 2023 07:41
@czechboy0
Copy link
Collaborator Author

@swift-server-bot test this please

@simonjbeaumont
Copy link
Collaborator

Rather than just disable it everywhere, let's enable it in just the Swift 5.9+ builds, by adding -Xswiftc -enable-upcoming-feature -Xswiftc ExistentialAny to the 5.9 and nightly docker-compose files.

This way we won't regress.

@czechboy0 czechboy0 merged commit 875fecf into swift-server:main Jul 17, 2023
@czechboy0 czechboy0 deleted the hd-disable-existential-any-temporarily branch July 17, 2023 09:30
@czechboy0 czechboy0 added the semver/none No version bump required. label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants