Skip to content

Commit 3b4e37e

Browse files
committed
Don't use opaque parameters in the standard library
The SIL printer is printing opaque parameters as <anonymous>, which breaks the SIL parser. Stop using opaque parameters in the standard library for the moment to unbreak SIL parsing of the standard library.
1 parent d740965 commit 3b4e37e

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)