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
These tests were not updated in the transition to
`REQUIRES: noncopyable_generics` and thus running them with a
correctly-built stdlib that has the Copyable requirements.
// FIXME: rdar://115752211 (deal with existing Swift modules that lack Copyable requirements)
232
232
// the stdlib right now is not yet being compiled with NoncopyableGenerics
233
233
func checkStdlibTypes(_ mo:borrowingMO){
234
-
_ ="\(mo)" // MISSING-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'T' in 'appendInterpolation'}}
235
-
let _:String=String(describing: mo) // MISSING-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'Subject' in 'init(describing:)'}}
234
+
_ ="\(mo)" // expected-error {{no exact matches in call to instance method 'appendInterpolation'}}
235
+
let _:String=String(describing: mo) // expected-error {{no exact matches in call to initializer}}
236
236
237
237
let _:[MO]= // MISSING-error {{noncopyable type 'MO' cannot be used with generic type 'Array<Element>' yet}}
238
238
[MO(),MO()]
239
239
let _:[MO]= // MISSING-error {{noncopyable type 'MO' cannot be used with generic type 'Array<Element>' yet}}
240
240
[]
241
-
let _:[String:MO]= // MISSING-error {{noncopyable type 'MO' cannot be used with generic type 'Dictionary<Key, Value>' yet}}
241
+
let _:[String:MO]= // expected-error {{type 'MO' does not conform to protocol 'Copyable'}}
242
242
["hello":MO()] // expected-error{{type '(String, MO)' containing noncopyable element is not supported}}
243
243
244
-
_ =[MO()] // MISSING-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'Element' in 'Array'}}
244
+
_ =[MO()] // expected-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'Element' in 'Array'}}
245
245
246
-
let _:Array<MO>=.init() // MISSING-error {{noncopyable type 'MO' cannot be used with generic type 'Array<Element>' yet}}
247
-
_ =[MO]() // MISSING-error {{noncopyable type 'MO' cannot be used with generic type 'Array<Element>' yet}}
246
+
let _:Array<MO>=.init() // expected-error {{type 'MO' does not conform to protocol 'Copyable'}}
247
+
_ =[MO]() // expected-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'Element' in 'Array'}}
248
248
249
-
let _:String="hello \(mo)" // MISSING-error {{noncopyable type 'MO' cannot be substituted for copyable generic parameter 'T' in 'appendInterpolation'}}
249
+
let _:String="hello \(mo)" // expected-error {{no exact matches in call to instance method 'appendInterpolation'}}
0 commit comments