Skip to content

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

Merged
meg-gupta merged 5 commits into
swiftlang:mainfrom
meg-gupta:lifetimeexperimental
Nov 19, 2024
Merged

Enable NonEscapable types by default and move lifetime dependence support under a new feature#77637
meg-gupta merged 5 commits into
swiftlang:mainfrom
meg-gupta:lifetimeexperimental

Conversation

@meg-gupta

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

@swift-ci test

@atrick atrick left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

@swift-ci test

@meg-gupta

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@swift-ci test

@meg-gupta

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@swift-ci test

Comment thread stdlib/cmake/modules/SwiftSource.cmake
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