Skip to content

enable standard language features in LangOptions #64602

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

Closed
wants to merge 1 commit into from

Conversation

kavon
Copy link
Member

@kavon kavon commented Mar 24, 2023

It's kind of odd how features that are unconditionally enabled, like Feature::Actors is not actually satisfying LangOptions.hasFeature(Feature::Actors). This wasn't causing a problem elsewhere when parsing the feature in swiftinterface files because EvaluateIfConfigCondition::visitUnresolvedDeclRefExpr has its own switch over the features (rather than asking if it's enabled). Also, most of the time when someone enables a feature permanently, it's expected that all hasFeature queries are removed because "it's now always on". Now we actually make sure the feature is always on.

@kavon
Copy link
Member Author

kavon commented Mar 24, 2023

@swift-ci smoke test

@kavon
Copy link
Member Author

kavon commented Mar 24, 2023

@swift-ci please test

1 similar comment
@kavon
Copy link
Member Author

kavon commented May 2, 2023

@swift-ci please test

@kavon kavon marked this pull request as ready for review May 2, 2023 18:20
@kavon kavon requested review from DougGregor and zoecarver and removed request for xedin, slavapestov, hborla and tshortli May 2, 2023 18:21
@kavon kavon closed this Apr 23, 2024
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.

1 participant