Skip to content

Commit 6c513f5

Browse files
committed
[stdlib] remove TODOs
These TODOs aren’t particularly actionable. What we really want is a way to define `_overrideLifetime()` in a not-unsafe way, and that will probably be a `Builtin` operation.
1 parent 1f66d4c commit 6c513f5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/public/core/LifetimeManager.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ public func _overrideLifetime<
295295
>(
296296
_ dependent: consuming T, borrowing source: borrowing U
297297
) -> T {
298-
// TODO: Remove @_unsafeNonescapableResult. Instead, the unsafe dependence
299-
// should be expressed by a builtin that is hidden within the function body.
300298
dependent
301299
}
302300

@@ -313,8 +311,6 @@ public func _overrideLifetime<
313311
>(
314312
_ dependent: consuming T, copying source: borrowing U
315313
) -> T {
316-
// TODO: Remove @_unsafeNonescapableResult. Instead, the unsafe dependence
317-
// should be expressed by a builtin that is hidden within the function body.
318314
dependent
319315
}
320316

@@ -332,7 +328,5 @@ public func _overrideLifetime<
332328
_ dependent: consuming T,
333329
mutating source: inout U
334330
) -> T {
335-
// TODO: Remove @_unsafeNonescapableResult. Instead, the unsafe dependence
336-
// should be expressed by a builtin that is hidden within the function body.
337331
dependent
338332
}

0 commit comments

Comments
 (0)