File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ // swift-format-ignore-file
2
+ // Note: Whitespace changes are used to workaround compiler bug
3
+ // https://github.com/swiftlang/swift/issues/79285
4
+
1
5
/// Evaluates a throwing closure and automatically catches and reports any error thrown.
2
6
///
3
7
/// - Parameters:
@@ -74,8 +78,9 @@ public func withErrorReporting<R>(
74
78
line: UInt = #line,
75
79
column: UInt = #column,
76
80
isolation: isolated ( any Actor ) ? = #isolation,
77
- catching body: ( ) async throws -> sending R
78
- ) async -> R ? {
81
+ // DO NOT FIX THE WHITESPACE IN THE NEXT LINE UNTIL 5.10 IS UNSUPPORTED
82
+ // https://github.com/swiftlang/swift/issues/79285
83
+ catching body: ( ) async throws -> sending R) async -> R ? {
79
84
if let reporters {
80
85
return await withIssueReporters ( reporters) {
81
86
do {
You can’t perform that action at this time.
0 commit comments