@@ -28,7 +28,7 @@ extension __ExpectationContext {
28
28
///
29
29
/// - Warning: This function is used to implement the `#expect()` and
30
30
/// `#require()` macros. Do not call it directly.
31
- @inlinable public func callAsFunction< P> ( _ value: consuming P , _ id: __ExpressionID ) -> P where P: _Pointer {
31
+ @inlinable public func callAsFunction< P> ( _ value: borrowing P , _ id: __ExpressionID ) -> P where P: _Pointer {
32
32
captureValue ( value, id)
33
33
}
34
34
@@ -49,7 +49,7 @@ extension __ExpectationContext {
49
49
///
50
50
/// - Warning: This function is used to implement the `#expect()` and
51
51
/// `#require()` macros. Do not call it directly.
52
- @inlinable public func callAsFunction( _ value: consuming String , _ id: __ExpressionID ) -> String {
52
+ @inlinable public func callAsFunction( _ value: borrowing String , _ id: __ExpressionID ) -> String {
53
53
captureValue ( value, id)
54
54
}
55
55
@@ -70,7 +70,7 @@ extension __ExpectationContext {
70
70
///
71
71
/// - Warning: This function is used to implement the `#expect()` and
72
72
/// `#require()` macros. Do not call it directly.
73
- @inlinable public func callAsFunction< E> ( _ value: consuming Array < E > , _ id: __ExpressionID ) -> Array < E > {
73
+ @inlinable public func callAsFunction< E> ( _ value: borrowing Array < E > , _ id: __ExpressionID ) -> Array < E > {
74
74
captureValue ( value, id)
75
75
}
76
76
@@ -90,7 +90,7 @@ extension __ExpectationContext {
90
90
/// - Warning: This function is used to implement the `#expect()` and
91
91
/// `#require()` macros. Do not call it directly.
92
92
@_disfavoredOverload
93
- @inlinable public func callAsFunction< T> ( _ value: consuming T ? , _ id: __ExpressionID ) -> T ? {
93
+ @inlinable public func callAsFunction< T> ( _ value: borrowing T ? , _ id: __ExpressionID ) -> T ? {
94
94
captureValue ( value, id)
95
95
}
96
96
}
0 commit comments