I believe this is no longer strictly the case now that conformances can be declared with availability. So the extension KeyPath: CustomDebugStringConvertible conformance would just need an appropriate @available(SwiftStdlib X.Y, *) attribute.
extension KeyPath: CustomDebugStringConvertible
@available(SwiftStdlib X.Y, *)