mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #81225 from glessard/override-lifetime-publicly-6.2
[6.2, stdlib] make _overrideLifetime() functions public
This commit is contained in:
@@ -1,21 +1,3 @@
|
||||
@_unsafeNonescapableResult
|
||||
@_alwaysEmitIntoClient
|
||||
@_transparent
|
||||
@lifetime(borrow source)
|
||||
internal func _overrideLifetime<T: ~Copyable & ~Escapable, U: ~Copyable & ~Escapable>(
|
||||
_ dependent: consuming T, borrowing source: borrowing U) -> T {
|
||||
dependent
|
||||
}
|
||||
|
||||
@_unsafeNonescapableResult
|
||||
@_alwaysEmitIntoClient
|
||||
@_transparent
|
||||
@lifetime(copy source)
|
||||
internal func _overrideLifetime<T: ~Copyable & ~Escapable, U: ~Copyable & ~Escapable>(
|
||||
_ dependent: consuming T, copying source: borrowing U) -> T {
|
||||
dependent
|
||||
}
|
||||
|
||||
public struct AnotherView : ~Escapable {
|
||||
@usableFromInline let _ptr: UnsafeRawBufferPointer
|
||||
@usableFromInline let _count: Int
|
||||
|
||||
Reference in New Issue
Block a user