Skip to content

[6.0] Frontend: Allow any experimental feature to be enabled when compiling a module #72637

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

Conversation

tshortli
Copy link
Contributor

  • Explanation: When building a module from its interface, do not diagnose whether or not a feature is available in production compilers. This is important since older compilers may be expected to build .swiftinterfaces that were produced by newer compilers where the feature has been enabled by default.
  • Scope: Relaxes diagnostics when parsing -enable-experimental-feature command line options. This is important to include in Swift 6 to prevent a class of condfail that has become common.
  • Issue/Radar: rdar://125500318
  • Original PR: Frontend: Allow any experimental feature to be enabled when compiling a module #72632
  • Risk: Low.
  • Testing: Added a test to the compiler test suite.
  • Reviewer: @xymus

… a module.

When building a module from its interface, do not diagnose whether or not a
feature is available in production compilers. This is important since older
compilers may be expected to build .swiftinterfaces that were produced by newer
compilers where the feature has been enabled by default.

Resolves rdar://125500318
@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Mar 27, 2024
@tshortli tshortli requested a review from a team as a code owner March 27, 2024 21:23
@tshortli tshortli requested a review from nkcsgexi March 27, 2024 21:23
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli enabled auto-merge March 27, 2024 21:25
@tshortli tshortli merged commit 6f5fc1f into swiftlang:release/6.0 Mar 28, 2024
@tshortli tshortli deleted the allow-non-production-features-in-module-interface-6.0 branch March 28, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants