Skip to content

[stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries #80518

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

DougGregor
Copy link
Member

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.

…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.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge April 4, 2025 01:07
Copy link
Contributor

@tshortli tshortli left a comment

Choose a reason for hiding this comment

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

It's hard to ensure that we do this systematically, but one thing I've been doing recently is preemptively relaxing experimental feature checks in the context of swiftinterface files to avoid this problem. Usually it's only important to enforce them in source.

@DougGregor
Copy link
Member Author

I wish past-me had thought to do this :)

@DougGregor
Copy link
Member Author

@swift-ci please smoke test windows

@DougGregor DougGregor merged commit b850395 into swiftlang:main Apr 4, 2025
3 checks passed
@DougGregor DougGregor deleted the resurrect-allow-unsafe-attribute branch April 4, 2025 17:05
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.

3 participants