We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68f648 commit 7ac1108Copy full SHA for 7ac1108
stdlib/private/StdlibUnittest/RaceTest.swift
@@ -47,7 +47,7 @@ import Glibc
47
#if _runtime(_ObjC)
48
import ObjectiveC
49
#else
50
-func autoreleasepool(_ code: @noescape () -> Void) {
+func autoreleasepool(invoking code: @noescape () -> Void) {
51
// Native runtime does not have autorelease pools. Execute the code
52
// directly.
53
code()
stdlib/private/StdlibUnittestFoundationExtras/StdlibUnittestFoundationExtras.swift
@@ -68,7 +68,7 @@ public func autoreleasepoolIfUnoptimizedReturnAutoreleased(
68
invoking body: @noescape () -> Void
69
) {
70
#if arch(i386) && (os(iOS) || os(watchOS))
71
- autoreleasepool(body)
+ autoreleasepool(invoking: body)
72
73
body()
74
#endif
0 commit comments