Skip to content

Commit 69392a7

Browse files
authored
Merge pull request #59327 from glessard/rdar46444561-optional-equality-operator
[stdlib] use @_transparent in an appropriate spot
2 parents 51bc273 + 7a157f9 commit 69392a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Optional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ extension Optional: Equatable where Wrapped: Equatable {
396396
/// - Parameters:
397397
/// - lhs: An optional value to compare.
398398
/// - rhs: Another optional value to compare.
399-
@inlinable
399+
@_transparent
400400
public static func ==(lhs: Wrapped?, rhs: Wrapped?) -> Bool {
401401
switch (lhs, rhs) {
402402
case let (l?, r?):

0 commit comments

Comments
 (0)