Skip to content

Commit 82ebc54

Browse files
authored
Merge pull request #70520 from DougGregor/no-opaque-parameters-in-stdlib
Don't use opaque parameters in the standard library
2 parents 5f43205 + 3b4e37e commit 82ebc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/ErrorType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public func _unexpectedError(
205205
@_silgen_name("swift_unexpectedErrorTyped")
206206
@_alwaysEmitIntoClient
207207
@inlinable
208-
public func _unexpectedErrorTyped(
209-
_ error: __owned some Error,
208+
public func _unexpectedErrorTyped<E: Error>(
209+
_ error: __owned E,
210210
filenameStart: Builtin.RawPointer,
211211
filenameLength: Builtin.Word,
212212
filenameIsASCII: Builtin.Int1,

0 commit comments

Comments
 (0)