Skip to content

Enable NonEscapable types by default and move lifetime dependence support under a new feature #77637

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 5 commits into from
Nov 19, 2024

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Nov 15, 2024

SE-0446 is accepted - Promote NonescapableTypes feature into a LANGUAGE_FEATURE. Move lifetime dependence support under a new experimental flag.

LifetimeDependence feature flag ensures Span's use of lifetime features are appropriately printed and work with older compilers which don't understand them yet.

@meg-gupta meg-gupta changed the title Introduce LifetimeDependence experimental feature and enable NonEscapable types by default Enable NonEscapable types by default and move lifetime dependence support under a new feature Nov 15, 2024
@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch 2 times, most recently from e41be3e to 5b73762 Compare November 15, 2024 14:25
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from 5b73762 to c08c815 Compare November 15, 2024 17:43
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch 2 times, most recently from 0dddf22 to ac38a23 Compare November 16, 2024 00:19
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

No concerns from me!

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from ac38a23 to 083de18 Compare November 16, 2024 02:01
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta requested a review from glessard November 16, 2024 03:50
@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch 2 times, most recently from 134e000 to d6f9ccc Compare November 16, 2024 12:51
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

preset=oss-swift-test-stdlib-with-toolchain
@swift-ci please test with toolchain and preset

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from d6f9ccc to 09e1d80 Compare November 18, 2024 18:50
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

preset=oss-swift-test-stdlib-with-toolchain
@swift-ci please test with toolchain and preset

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from 09e1d80 to a5c5c20 Compare November 18, 2024 20:39
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from a5c5c20 to 2b6c053 Compare November 18, 2024 21:40
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from 2b6c053 to 503b8ad Compare November 19, 2024 00:13
@meg-gupta
Copy link
Contributor Author

@swift-ci test

Without this, supported old compilers which don't recognize LifetimeDependence feature but
recognize the NonEscapableTypes feature will run into lifetime dependence inference errors
on the implicit initializer generated for the stdlib's swiftinterface
@meg-gupta meg-gupta force-pushed the lifetimeexperimental branch from 503b8ad to 92782a0 Compare November 19, 2024 02:09
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta merged commit 1be434d into swiftlang:main Nov 19, 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.

5 participants