Skip to content

[6.2] [stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries #80640

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

@tshortli tshortli commented Apr 8, 2025

  • Explanation: We need this so that older compilers can handle the .swiftinterface files we generate. It's unnecessary for newer compilers and can be removed later.
  • Scope: The standard library build and textual interface.
  • Issue/Radar: rdar://148529962
  • Original PR: [stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries #80518
  • Risk: Low. The addition of the -enable-experimental-feature AllowUnsafeAttribute should be a no-op for everything except for old, development versions of the Swift 6.2 compiler.
  • Testing: @DougGregor manually verified that the stdlib can be consumed with an older compiler that requires AllowUnsafeAttribute.
  • Reviewer: @DougGregor

…ries

We need this so that older compilers can handle the .swiftinterface
files we generate. It's unnecessary for newer compilers and can be
removed later.

Fixes rdar://148529962.
@tshortli tshortli requested a review from a team as a code owner April 8, 2025 15:45
@tshortli
Copy link
Contributor Author

tshortli commented Apr 8, 2025

@swift-ci please test

@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 8, 2025
@tshortli tshortli enabled auto-merge April 8, 2025 16:30
@tshortli tshortli merged commit fca7c65 into swiftlang:release/6.2 Apr 9, 2025
5 checks passed
@tshortli tshortli deleted the resurrect-allow-unsafe-attribute-6.2 branch April 9, 2025 05:18
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.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants