Skip to content

Enable NonEscapableTypes in standard library and make the feature suppressible #76455

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
merged 2 commits into from
Sep 16, 2024

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Sep 13, 2024

This PR enables the experimental feature NonEscapableTypes by default in the standard library. It also makes it a "suppressible" feature so that uses of ~Escapable and lifetime dependence are guarded by the feature flag.
This change mostly follows what was done for NonCopyableGenerics to make it a suppressible feature.

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta marked this pull request as ready for review September 16, 2024 15:14
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test windows platform

@Azoy
Copy link
Contributor

Azoy commented Sep 16, 2024

If we're going to unconditionally turn this on for the stdlib, can we remove the SWIFT_ENABLE_EXPERIMENTAL_NONESCAPABLE_TYPES build-script option?

Comment on lines +1 to +2
// RUN: %empty-directory(%t)
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Test -enable-experimental-feature NonescapableTypes
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this file may be over-indented by one space on most of the lines

@meg-gupta
Copy link
Contributor Author

@Azoy @tshortli I'll fix your suggestions in a follow-on

@meg-gupta meg-gupta merged commit 58c6a2f into swiftlang:main Sep 16, 2024
5 checks passed
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.

4 participants