swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.65k stars 10.38k forks source link

🍒[6.1][cxx-interop] Use the new lifetime dependence language feature flag #77800

Open Xazax-hun opened 3 days ago

Xazax-hun commented 3 days ago

Non-escapable types are now enabled by default. Use the new lifetime dependence feature flag to gate interpreting lifetime annotations on the C++ side and add tests to make sure we get the expected diagnostics when the feature flag is off.

Xazax-hun commented 3 days ago

@swift-ci please test