Skip to content

[Sema] Improve diagnoses of generic specializations #75526

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
Jul 31, 2024

Conversation

gregomni
Copy link
Contributor

Reapplication of PR #74909 (which got rolled back) along with PR #75463. Reapplied to up-to-date main branch and an addition to work around issue #75500.

@gregomni
Copy link
Contributor Author

@swift-ci Please test source compatibility.

@gregomni gregomni linked an issue Jul 27, 2024 that may be closed by this pull request
@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test.

@gregomni
Copy link
Contributor Author

Looks like smoke test failed because of this test: swiftlang/swift-integration-tests#143

@swift-ci Please smoke test.

@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test.

@gregomni
Copy link
Contributor Author

Added warning for macros and then squashed.

@swift-ci Please smoke test.

@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test.

@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test.

Always add constraints, find fixes during simplify.
New separate fix for allow generic function specialization.
Improve parse heuristic for isGenericTypeDisambiguatingToken.
Degrade concrete type specialization fix to warning for macros.
@gregomni
Copy link
Contributor Author

@swift-ci Please smoke test.

@gregomni gregomni requested a review from xedin July 31, 2024 04:59
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@xedin
Copy link
Contributor

xedin commented Jul 31, 2024

Let's run source compat, just in case.

@xedin
Copy link
Contributor

xedin commented Jul 31, 2024

@swift-ci please test source compatibility

@xedin
Copy link
Contributor

xedin commented Jul 31, 2024

I want to see how that warning looks like now in penny-bot project.

@xedin xedin merged commit ceeb6ec into swiftlang:main Jul 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants