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(){
@@ -422,7 +452,7 @@ func _Sequence() {
422
452
func _Sequence<S :Sequence>(s:S){
423
453
_ = s.generate() // expected-error {{'generate()' has been renamed to 'makeIterator()'}} {{9-17=makeIterator}} {{none}}
424
454
_ = s.underestimateCount() // expected-error {{'underestimateCount()' has been replaced by 'underestimatedCount'}} {{9-27=underestimatedCount}} {{27-29=}} {{none}}
425
-
_ = s.split(1, allowEmptySlices:true){ _ intrue} // expected-error {{'split(_:allowEmptySlices:isSeparator:)' is unavailable: call 'split(maxSplits:omittingEmptySubsequences:isSeparator:)' and invert the 'allowEmptySlices' argument}} {{none}}
455
+
_ = 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}}
435
465
_ = x.reverse() // expected-error {{'reverse()' has been renamed to 'reversed()'}} {{9-16=reversed}} {{none}}
436
466
_ = x.startsWith([]){ _ intrue} // expected-error {{'startsWith(_:isEquivalent:)' has been renamed to 'starts(with:by:)'}} {{9-19=starts}} {{20-20=with: }} {{none}}
467
+
_ = x.elementsEqual([], isEquivalent:{ _, _ intrue}) // expected-error {{'elementsEqual(_:isEquivalent:)' has been renamed to 'elementsEqual(_:by:)'}} {{9-22=elementsEqual}} {{27-39=by}} {{none}}
468
+
_ = x.elementsEqual([]){ _, _ intrue} // OK
437
469
_ = x.lexicographicalCompare([]){ _, _ intrue} // expected-error {{'lexicographicalCompare(_:isOrderedBefore:)' has been renamed to 'lexicographicallyPrecedes(_:by:)'}} {{9-31=lexicographicallyPrecedes}}{{none}}
470
+
_ = x.contains({ _ intrue}) // expected-error {{'contains' has been renamed to 'contains(where:)'}} {{9-17=contains}} {{18-18=where: }} {{none}}
471
+
_ = x.contains{ _ intrue} // OK
472
+
_ = 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}}
550
+
c.encode(s, output: out) // expected-error {{encode(_:output:)' has been renamed to 'encode(_:into:)}} {{5-11=encode}} {{15-21=into}} {{none}}
551
+
c.encode(s){ _ in} // OK
552
+
UTF8.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{8-14=encode}} {{18-24=into}} {{none}}
553
+
UTF16.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{9-15=encode}} {{19-25=into}} {{none}}
554
+
UTF32.encode(s, output:{ _ in}) // expected-error {{'encode(_:output:)' has been renamed to 'encode(_:into:)'}} {{9-15=encode}} {{19-25=into}} {{none}}
514
555
}
556
+
515
557
func _Unicode<I :IteratorProtocol, E :UnicodeCodec>(i:I, e:E.Type)where I.Element ==E.CodeUnit{
516
558
_ =transcode(e, e, i,{ _ in}, stopOnError:true) // expected-error {{'transcode(_:_:_:_:stopOnError:)' is unavailable: use 'transcode(_:from:to:stoppingOnError:into:)'}} {{none}}
517
559
_ =UTF16.measure(e, input: i, repairIllFormedSequences:true) // expected-error {{'measure(_:input:repairIllFormedSequences:)' is unavailable: use 'transcodedLength(of:decodedAs:repairingIllFormedSequences:)'}} {{none}}
0 commit comments