Skip to content

Commit d231213

Browse files
committed
[stdlib] On second thought, making ClosedRange.contains(Range) transparent is a bad idea
1 parent 7a5dbef commit d231213

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

stdlib/public/core/ClosedRange.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ where Bound: Strideable, Bound.Stride: SignedInteger
357357
///
358358
/// - Complexity: O(1)
359359
@_alwaysEmitIntoClient
360-
@_transparent
361360
public func contains(_ other: Range<Bound>) -> Bool {
362361
if other.isEmpty { return true }
363362
let otherInclusiveUpper = other.upperBound.advanced(by: -1)

0 commit comments

Comments
 (0)