mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
C++ pointer type `T*` is generally imported as `Unsafe(Mutable)Pointer<T>`. However, if `T` is non-copyable in Swift (e.g. it has a deleted C++ copy constructor), using `UnsafePointer<T>` type requires noncopyable generics to be enabled. This was causing assertion failures when building SwiftCompilerSources in https://github.com/apple/swift/pull/72912.