Skip to content

Commit 82b26d9

Browse files
committed
Remove more externalMacro uses (oops)
1 parent e727af0 commit 82b26d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/Proposals/NNNN-return-errors-from-expect-throws.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ is not statically available. The problematic overloads will also be deprecated:
8484
_ comment: @autoclosure () -> Comment? = nil,
8585
sourceLocation: SourceLocation = #_sourceLocation,
8686
performing expression: () async throws -> R
87-
-) = #externalMacro(module: "TestingMacros", type: "RequireMacro") where E: Error
87+
-) where E: Error
8888
+) -> E where E: Error
8989

9090
+@discardableResult
@@ -93,7 +93,7 @@ is not statically available. The problematic overloads will also be deprecated:
9393
_ comment: @autoclosure () -> Comment? = nil,
9494
sourceLocation: SourceLocation = #_sourceLocation,
9595
performing expression: () async throws -> R
96-
-) = #externalMacro(module: "TestingMacros", type: "ExpectMacro") where E: Error & Equatable
96+
-) where E: Error & Equatable
9797
+) -> E? where E: Error & Equatable
9898

9999
+@discardableResult
@@ -102,7 +102,7 @@ is not statically available. The problematic overloads will also be deprecated:
102102
_ comment: @autoclosure () -> Comment? = nil,
103103
sourceLocation: SourceLocation = #_sourceLocation,
104104
performing expression: () async throws -> R
105-
-) = #externalMacro(module: "TestingMacros", type: "RequireMacro") where E: Error & Equatable
105+
-) where E: Error & Equatable
106106
+) -> E where E: Error & Equatable
107107

108108
+@available(*, deprecated, message: "Examine the result of '#expect(throws:)' instead.")
@@ -112,7 +112,7 @@ is not statically available. The problematic overloads will also be deprecated:
112112
sourceLocation: SourceLocation = #_sourceLocation,
113113
performing expression: () async throws -> R,
114114
throws errorMatcher: (any Error) async throws -> Bool
115-
-) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
115+
-)
116116
+) -> (any Error)?
117117

118118
+@available(*, deprecated, message: "Examine the result of '#require(throws:)' instead.")
@@ -122,7 +122,7 @@ is not statically available. The problematic overloads will also be deprecated:
122122
sourceLocation: SourceLocation = #_sourceLocation,
123123
performing expression: () async throws -> R,
124124
throws errorMatcher: (any Error) async throws -> Bool
125-
-) = #externalMacro(module: "TestingMacros", type: "RequireMacro")
125+
-)
126126
+) -> any Error
127127
```
128128

0 commit comments

Comments
 (0)