Skip to content

[6.1] TypeCheckType: Unconditionally warn about missing existential any until a future language mode #78389

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 2 commits into from
Feb 19, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented Dec 31, 2024

@AnthonyLatsis AnthonyLatsis requested a review from a team as a code owner December 31, 2024 04:31
Copy link

@octavio12345300 octavio12345300 left a comment

Choose a reason for hiding this comment

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

l

@AnthonyLatsis AnthonyLatsis changed the title [6.1] TypeCheckType: Make ExistentialAny warn rather than error until Swift 7 [6.1] TypeCheckType: Unconditionally warn about missing existential any until Swift 7 Feb 12, 2025
…ntil Swift 7

swiftlang#72659 turned out to have some
source compatibility fallout that we need to fix. Instead of introducing
yet another brittle compatibility hack, stop emitting errors about a
missing `any` altogether until a future language mode.

Besides resolving the compatibility issue, this will encourage
developers to adopt any sooner and grant us ample time to gracefully
address any remaining bugs before the source compatibility burden
resurfaces.

A subsequent commit adds a diagnostic group that will allow users to
escalate these warnings to errors with `-Werror ExistentialAny`.
Allow users to escalate `any` syntax warnings to errors with
`-Werror ExistentialAny`.
octavio12345300

This comment was marked as spam.

Copy link

@octavio12345300 octavio12345300 left a comment

Choose a reason for hiding this comment

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

list

@AnthonyLatsis AnthonyLatsis changed the title [6.1] TypeCheckType: Unconditionally warn about missing existential any until Swift 7 [6.1] TypeCheckType: Unconditionally warn about missing existential any until a future language mode Feb 17, 2025
@hborla
Copy link
Member

hborla commented Feb 18, 2025

@swift-ci please test

@AnthonyLatsis AnthonyLatsis merged commit 8502c4a into swiftlang:release/6.1 Feb 19, 2025
5 checks passed
@AnthonyLatsis AnthonyLatsis deleted the tuber-magnatum-6.1 branch February 19, 2025 05:25
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.

3 participants