swift
35d5408a - [cxx-interop] Import functions with inferred lifetimes as unsafe

Commit
117 days ago
[cxx-interop] Import functions with inferred lifetimes as unsafe Functions returning ~Escapable types need lifetime annotations. When those were not specified in C++, Swift helpfully inferred them. Unfortunately, those lifetimes are not guaranteed to be correct since the body of the function was never checked by the Swift compiler (as it is implemented in C++). This PR makes sure that we consider functions with inferred lifetimes as unsafe. rdar://183168058
Author
Gabor Horvath
Parents
Loading