You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) throws -> ()' (aka '(Int) throws -> ()') expects 1 argument, but 2 were used in closure body}}
1146
+
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) -> ()' (aka '(Int) -> ()') expects 1 argument, but 2 were used in closure body}}
1147
1147
(0..<10).map{ x, y, z in}
1148
-
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) throws -> ()' (aka '(Int) throws -> ()') expects 1 argument, but 3 were used in closure body}}
1148
+
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) -> ()' (aka '(Int) -> ()') expects 1 argument, but 3 were used in closure body}}
1149
1149
(0..<10).map{ x, y, z, w in}
1150
-
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) throws -> ()' (aka '(Int) throws -> ()') expects 1 argument, but 4 were used in closure body}}
1150
+
// expected-error@-1 {{contextual closure type '(Range<Int>.Element) -> ()' (aka '(Int) -> ()') expects 1 argument, but 4 were used in closure body}}
1151
1151
1152
1152
// rdar://77022842 - crash due to a missing argument to a ternary operator
Copy file name to clipboardExpand all lines: test/Constraints/enum_cases.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ enum G_E<T> {
19
19
letarr:[String]=[]
20
20
let _ = arr.map(E.foo) // Ok
21
21
let _ = arr.map(E.bar) // Ok
22
-
let _ = arr.map(E.two) // expected-error {{cannot convert value of type '(Int, Int) -> E' to expected argument type '(String) throws -> E'}}
22
+
let _ = arr.map(E.two) // expected-error {{cannot convert value of type '(Int, Int) -> E' to expected argument type '(String) -> E'}}
23
23
24
-
let _ = arr.map(E.tuple) // expected-error {{cannot convert value of type '((x: Int, y: Int)) -> E' to expected argument type '(String) throws -> E'}}
24
+
let _ = arr.map(E.tuple) // expected-error {{cannot convert value of type '((x: Int, y: Int)) -> E' to expected argument type '(String) -> E'}}
25
25
26
26
let _ = arr.map(G_E<String>.foo) // Ok
27
27
let _ = arr.map(G_E<String>.bar) // Ok
28
-
let _ = arr.map(G_E<String>.two) // expected-error {{cannot convert value of type '(String, String) -> G_E<String>' to expected argument type '(String) throws -> G_E<String>'}}
29
-
let _ = arr.map(G_E<Int>.tuple) // expected-error {{cannot convert value of type '((x: Int, y: Int)) -> G_E<Int>' to expected argument type '(String) throws -> G_E<Int>'}}
28
+
let _ = arr.map(G_E<String>.two) // expected-error {{cannot convert value of type '(String, String) -> G_E<String>' to expected argument type '(String) -> G_E<String>'}}
29
+
let _ = arr.map(G_E<Int>.tuple) // expected-error {{cannot convert value of type '((x: Int, y: Int)) -> G_E<Int>' to expected argument type '(String) -> G_E<Int>'}}
30
30
31
31
let _ =E.foo("hello") // expected-error {{missing argument label 'bar:' in call}}
// FIXME(https://github.com/apple/swift/issues/65696): We should not be showing this because (1) it cannot be accessed on the existential (2) we don't have the syntax and features to represent the projected type sig anyway.
Copy file name to clipboardExpand all lines: test/api-digester/Outputs/stability-stdlib-source-x86_64.swift.expected
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,5 +26,17 @@ Func Unicode.UTF32.Parser.parseScalar(from:) has generic signature change from <
26
26
Func Unicode.UTF32.decode(_:) has generic signature change from <I where I : Swift.IteratorProtocol, I.Element == Swift.Unicode.UTF32.CodeUnit> to <I where I : Swift.IteratorProtocol, I.Element == Swift.UInt32>
27
27
Func Unicode.UTF8.decode(_:) has generic signature change from <I where I : Swift.IteratorProtocol, I.Element == Swift.Unicode.UTF8.CodeUnit> to <I where I : Swift.IteratorProtocol, I.Element == Swift.UInt8>
28
28
Constructor Mirror.init(_:children:displayStyle:ancestorRepresentation:) has generic signature change from <Subject, C where C : Swift.Collection, C.Element == Swift.Mirror.Child> to <Subject, C where C : Swift.Collection, C.Element == (label: Swift.String?, value: Any)>
29
+
Func AnyBidirectionalCollection.map(_:) has generic signature change from <Element, T> to <Element, T, E where E : Swift.Error>
30
+
Func AnyBidirectionalCollection.map(_:) is now without @rethrows
31
+
Func AnyCollection.map(_:) has generic signature change from <Element, T> to <Element, T, E where E : Swift.Error>
32
+
Func AnyCollection.map(_:) is now without @rethrows
33
+
Func AnyRandomAccessCollection.map(_:) has generic signature change from <Element, T> to <Element, T, E where E : Swift.Error>
34
+
Func AnyRandomAccessCollection.map(_:) is now without @rethrows
35
+
Func AnySequence.map(_:) has generic signature change from <Element, T> to <Element, T, E where E : Swift.Error>
36
+
Func AnySequence.map(_:) is now without @rethrows
37
+
Func Collection.map(_:) has generic signature change from <Self, T where Self : Swift.Collection> to <Self, T, E where Self : Swift.Collection, E : Swift.Error>
38
+
Func Collection.map(_:) is now without @rethrows
39
+
Func Sequence.map(_:) has generic signature change from <Self, T where Self : Swift.Sequence> to <Self, T, E where Self : Swift.Sequence, E : Swift.Error>
Copy file name to clipboardExpand all lines: test/api-digester/stability-stdlib-abi-without-asserts.test
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,18 @@ Func _swift_retainCount(_:) is a new API without @available attribute
60
60
Func _swift_unownedRetainCount(_:) is a new API without @available attribute
61
61
Func _swift_weakRetainCount(_:) is a new API without @available attribute
62
62
63
+
Func Collection.map(_:) has been renamed to Func __rethrows_map(_:)
64
+
Func Collection.map(_:) has mangled name changing from '(extension in Swift):Swift.Collection.map<A>((A.Element) throws -> A1) throws -> Swift.Array<A1>' to '(extension in Swift):Swift.Collection.__rethrows_map<A>((A.Element) throws -> A1) throws -> Swift.Array<A1>'
65
+
Func Collection.map(_:) is now without @rethrows
63
66
Func Collection.removingSubranges(_:) has been removed
64
67
Func Collection.subranges(of:) has been removed
65
68
Func Collection.subranges(where:) has been removed
66
69
Func MutableCollection.moveSubranges(_:to:) has been removed
67
70
Func MutableCollection.removeSubranges(_:) has been removed
68
71
Func RangeReplaceableCollection.removeSubranges(_:) has been removed
72
+
Func Sequence.map(_:) has been renamed to Func __rethrows_map(_:)
73
+
Func Sequence.map(_:) has mangled name changing from '(extension in Swift):Swift.Sequence.map<A>((A.Element) throws -> A1) throws -> Swift.Array<A1>' to '(extension in Swift):Swift.Sequence.__rethrows_map<A>((A.Element) throws -> A1) throws -> Swift.Array<A1>'
74
+
Func Sequence.map(_:) is now without @rethrows
69
75
Struct AnyHashable has added a conformance to an existing protocol _HasCustomAnyHashableRepresentation
70
76
Class AnyKeyPath has added a conformance to an existing protocol CustomDebugStringConvertible
71
77
Class KeyPath has added a conformance to an existing protocol CustomDebugStringConvertible
@@ -85,6 +91,18 @@ Constructor _SmallString.init(taggedCocoa:) has return type change from Swift._S
85
91
Enum Never has added a conformance to an existing protocol Decodable
86
92
Enum Never has added a conformance to an existing protocol Encodable
87
93
Enum Never has added a conformance to an existing protocol Identifiable
94
+
Func AnyBidirectionalCollection.map(_:) has been renamed to Func __rethrows_map(_:)
95
+
Func AnyBidirectionalCollection.map(_:) has mangled name changing from 'Swift.AnyBidirectionalCollection.map<A>((A) throws -> A1) throws -> Swift.Array<A1>' to 'Swift.AnyBidirectionalCollection.__rethrows_map<A>((A) throws -> A1) throws -> Swift.Array<A1>'
96
+
Func AnyBidirectionalCollection.map(_:) is now without @rethrows
97
+
Func AnyCollection.map(_:) has been renamed to Func __rethrows_map(_:)
98
+
Func AnyCollection.map(_:) has mangled name changing from 'Swift.AnyCollection.map<A>((A) throws -> A1) throws -> Swift.Array<A1>' to 'Swift.AnyCollection.__rethrows_map<A>((A) throws -> A1) throws -> Swift.Array<A1>'
99
+
Func AnyCollection.map(_:) is now without @rethrows
100
+
Func AnyRandomAccessCollection.map(_:) has been renamed to Func __rethrows_map(_:)
101
+
Func AnyRandomAccessCollection.map(_:) has mangled name changing from 'Swift.AnyRandomAccessCollection.map<A>((A) throws -> A1) throws -> Swift.Array<A1>' to 'Swift.AnyRandomAccessCollection.__rethrows_map<A>((A) throws -> A1) throws -> Swift.Array<A1>'
102
+
Func AnyRandomAccessCollection.map(_:) is now without @rethrows
103
+
Func AnySequence.map(_:) has been renamed to Func __rethrows_map(_:)
104
+
Func AnySequence.map(_:) has mangled name changing from 'Swift.AnySequence.map<A>((A) throws -> A1) throws -> Swift.Array<A1>' to 'Swift.AnySequence.__rethrows_map<A>((A) throws -> A1) throws -> Swift.Array<A1>'
105
+
Func AnySequence.map(_:) is now without @rethrows
88
106
89
107
// These haven't actually been removed; they are simply marked unavailable.
90
108
// This seems to be a false positive in the ABI checker. This is not an ABI
@@ -110,6 +128,11 @@ Func UnsafeBufferPointer.withMemoryRebound(to:_:) has been removed
110
128
Func UnsafeMutableBufferPointer.withMemoryRebound(to:_:) has been removed
111
129
Func UnsafeMutablePointer.withMemoryRebound(to:capacity:_:) has been removed
112
130
Func UnsafePointer.withMemoryRebound(to:capacity:_:) has been removed
131
+
Func _AnySequenceBox._map(_:) is now without @rethrows
132
+
Func _BidirectionalCollectionBox._map(_:) is now without @rethrows
133
+
Func _CollectionBox._map(_:) is now without @rethrows
134
+
Func _RandomAccessCollectionBox._map(_:) is now without @rethrows
135
+
Func _SequenceBox._map(_:) is now without @rethrows
113
136
Func UnsafeMutableRawBufferPointer.storeBytes(of:toByteOffset:as:) has been removed
114
137
Func UnsafeMutableRawPointer.storeBytes(of:toByteOffset:as:) has been removed
115
138
Func UnsafeMutableBufferPointer.assign(repeating:) has been removed
0 commit comments