Skip to content

Sema: Downgrade potentially unavailable enum cases to a warning in module interfaces #37843

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

Conversation

slavapestov
Copy link
Contributor

There are two pieces here:

  • A -warn-on-potentially-unavailable-enum-case flag is passed down by
    the driver when producing a swiftinterface

  • When consuming a swiftinterface, also enable this behavior

Part of rdar://problem/78306593.

…dule interfaces

There are two pieces here:

- A -warn-on-potentially-unavailable-enum-case flag is passed down by
  the driver when *producing* a swiftinterface

- When *consuming* a swiftinterface, also enable this behavior

Part of rdar://problem/78306593.
@slavapestov slavapestov force-pushed the unavailable-enum-case-warning branch from 9513223 to 765ce78 Compare June 9, 2021 03:38
@slavapestov
Copy link
Contributor Author

swiftlang/swift-driver#706
@swift-ci Please smoke test

@slavapestov slavapestov merged commit b207c89 into swiftlang:main Jun 10, 2021
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