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
_ = x.allocatedElementCount // expected-error {{'allocatedElementCount' has been renamed to 'capacity'}} {{9-30=capacity}} {{none}}
310
+
_ =ManagedBuffer<H,E>.create(1){ _ in h } // expected-error {{'create(_:initialValue:)' has been renamed to 'create(minimumCapacity:makingHeaderWith:)'}} {{27-33=create}} {{34-34=minimumCapacity: }} {{none}}
311
+
_ =ManagedBuffer<H,E>.create(1, initialValue:{ _ in h }) // expected-error {{'create(_:initialValue:)' has been renamed to 'create(minimumCapacity:makingHeaderWith:)'}} {{27-33=create}} {{34-34=minimumCapacity: }} {{37-49=makingHeaderWith}} {{none}}
312
+
_ =ManagedBufferPointer<H,E>(bufferClass: bc, minimumCapacity:1, initialValue:{ _, _ in h }) // expected-error {{'init(bufferClass:minimumCapacity:initialValue:)' has been renamed to 'init(bufferClass:minimumCapacity:makingHeaderWith:)'}} {{71-83=makingHeaderWith}} {{none}}
313
+
_ =ManagedBufferPointer<H,E>(bufferClass: bc, minimumCapacity:1){ _, _ in h } // OK
314
+
315
+
func fn(_:ManagedProtoBuffer<H,E>){} // expected-error {{'ManagedProtoBuffer' has been renamed to 'ManagedBuffer'}} {{14-32=ManagedBuffer}} {{none}}
286
316
}
287
317
288
318
func _Map(){
@@ -413,7 +443,7 @@ func _Sequence() {
413
443
func _Sequence<S :Sequence>(s:S){
414
444
_ = s.generate() // expected-error {{'generate()' has been renamed to 'makeIterator()'}} {{9-17=makeIterator}} {{none}}
415
445
_ = s.underestimateCount() // expected-error {{'underestimateCount()' has been replaced by 'underestimatedCount'}} {{9-27=underestimatedCount}} {{27-29=}} {{none}}
416
-
_ = s.split(1, allowEmptySlices:true){ _ intrue} // expected-error {{'split(_:allowEmptySlices:isSeparator:)' is unavailable: call 'split(maxSplits:omittingEmptySubsequences:isSeparator:)' and invert the 'allowEmptySlices' argument}} {{none}}
446
+
_ = s.split(1, allowEmptySlices:true){ _ intrue} // expected-error {{'split(_:allowEmptySlices:isSeparator:)' is unavailable: call 'split(maxSplits:omittingEmptySubsequences:whereSeparator:)' and invert the 'allowEmptySlices' argument}} {{none}}
_ = x.maxElement{ _, _ intrue} // expected-error {{'maxElement' has been renamed to 'max(by:)'}} {{9-19=max}} {{none}}
426
456
_ = x.reverse() // expected-error {{'reverse()' has been renamed to 'reversed()'}} {{9-16=reversed}} {{none}}
427
457
_ = x.startsWith([]){ _ intrue} // expected-error {{'startsWith(_:isEquivalent:)' has been renamed to 'starts(with:by:)'}} {{9-19=starts}} {{20-20=with: }} {{none}}
458
+
_ = x.elementsEqual([], isEquivalent:{ _, _ intrue}) // expected-error {{'elementsEqual(_:isEquivalent:)' has been renamed to 'elementsEqual(_:by:)'}} {{9-22=elementsEqual}} {{27-39=by}} {{none}}
459
+
_ = x.elementsEqual([]){ _, _ intrue} // OK
428
460
_ = x.lexicographicalCompare([]){ _, _ intrue} // expected-error {{'lexicographicalCompare(_:isOrderedBefore:)' has been renamed to 'lexicographicallyPrecedes(_:by:)'}} {{9-31=lexicographicallyPrecedes}}{{none}}
461
+
_ = x.contains({ _ intrue}) // expected-error {{'contains' has been renamed to 'contains(where:)'}} {{9-17=contains}} {{18-18=where: }} {{none}}
462
+
_ = x.contains{ _ intrue} // OK
463
+
_ = x.reduce(1, combine:{ _, _ in1}) // expected-error {{'reduce(_:combine:)' has been renamed to 'reduce(_:_:)'}} {{9-15=reduce}} {{19-28=}} {{none}}
func fn<T :UnicodeCodecType>(_:T){} // expected-error {{'UnicodeCodecType' has been renamed to 'UnicodeCodec'}} {{15-31=UnicodeCodec}} {{none}}
541
+
c.encode(s, output: out) // expected-error {{encode(_:output:)' has been renamed to 'encode(_:into:)}} {{5-11=encode}} {{15-21=into}} {{none}}
542
+
c.encode(s){ _ in} // OK
543
+
UTF8.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{8-14=encode}} {{18-24=into}} {{none}}
544
+
UTF16.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{9-15=encode}} {{19-25=into}} {{none}}
545
+
UTF32.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{9-15=encode}} {{19-25=into}} {{none}}
505
546
}
547
+
506
548
func _Unicode<I :IteratorProtocol, E :UnicodeCodec>(i:I, e:E.Type)where I.Element ==E.CodeUnit{
507
549
_ =transcode(e, e, i,{ _ in}, stopOnError:true) // expected-error {{'transcode(_:_:_:_:stopOnError:)' is unavailable: use 'transcode(_:from:to:stoppingOnError:into:)'}} {{none}}
508
550
_ =UTF16.measure(e, input: i, repairIllFormedSequences:true) // expected-error {{'measure(_:input:repairIllFormedSequences:)' is unavailable: use 'transcodedLength(of:decodedAs:repairingIllFormedSequences:)'}} {{none}}
0 commit comments