Skip to content

Commit e0cfb31

Browse files
committed
[stdlib] make _overrideLifetime functions public
These are discussed in the lifetime annotations pitch: swiftlang/swift-evolution#2750 Addresses rdar://150400414
1 parent 1f93566 commit e0cfb31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/LifetimeManager.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public func _copy<T>(_ value: T) -> T {
290290
@_alwaysEmitIntoClient
291291
@_transparent
292292
@lifetime(borrow source)
293-
internal func _overrideLifetime<
293+
public func _overrideLifetime<
294294
T: ~Copyable & ~Escapable, U: ~Copyable & ~Escapable
295295
>(
296296
_ dependent: consuming T, borrowing source: borrowing U
@@ -308,7 +308,7 @@ internal func _overrideLifetime<
308308
@_alwaysEmitIntoClient
309309
@_transparent
310310
@lifetime(copy source)
311-
internal func _overrideLifetime<
311+
public func _overrideLifetime<
312312
T: ~Copyable & ~Escapable, U: ~Copyable & ~Escapable
313313
>(
314314
_ dependent: consuming T, copying source: borrowing U
@@ -326,7 +326,7 @@ internal func _overrideLifetime<
326326
@_alwaysEmitIntoClient
327327
@_transparent
328328
@lifetime(&source)
329-
internal func _overrideLifetime<
329+
public func _overrideLifetime<
330330
T: ~Copyable & ~Escapable, U: ~Copyable & ~Escapable
331331
>(
332332
_ dependent: consuming T,

0 commit comments

Comments
 (0)