@@ -306,10 +306,10 @@ func _prespecializeIndexingIterator<Elements>(_ x: IndexingIterator<Elements>) w
306306func prespecializeCollections< T> ( _ element: T ) {
307307 var umbp = UnsafeMutableBufferPointer< T> . allocate( capacity: 1 )
308308 let cmp = { ( _: T , _: T ) in return false }
309- umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 )
310- umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 , cmp: cmp)
311- umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 , end: 0 , cmp: cmp)
312- try ! umbp. _prespecializeMutableRandomAccessCollection ( cmp: cmp)
309+ unsafe umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 )
310+ unsafe umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 , cmp: cmp)
311+ unsafe umbp. _prespecializeMutableBirectionalCollection ( range: 0 ..< 0 , end: 0 , cmp: cmp)
312+ try ! unsafe umbp. _prespecializeMutableRandomAccessCollection ( cmp: cmp)
313313
314314 let _: ( Array < T > , Builtin . RawPointer ) = _prespecializeArray ( 0 . _builtinWordValue)
315315
@@ -319,20 +319,20 @@ func prespecializeCollections<T>(_ element: T) {
319319 array. _prespecializeArray ( index: 0 , flag: false )
320320 array. _prespecializeArray ( index: 0 , flag: false , token: _DependenceToken ( ) )
321321 array. _prespecializeArray ( arrayLiteral: element)
322- array. _prespecializeArray ( capacity: 0 ) { ( _: inout UnsafeMutableBufferPointer < T > , _: inout Int ) in return }
322+ unsafe array. _prespecializeArray ( capacity: 0 ) { ( _: inout UnsafeMutableBufferPointer < T > , _: inout Int ) in return }
323323 array. _prespecializeArray ( flag: false )
324324 array. _prespecializeArray ( index: 0 )
325325 array. _prespecializeArray ( index: 0 , element: element)
326326 array. _prespecializeArray ( element: element, index: 0 )
327327 array. _prespecializeArray ( range: 0 ..< 0 , collection: EmptyCollection ( ) )
328- array. _prespecializeArray ( with: { ( _: inout UnsafeMutableBufferPointer < T > ) -> Optional < ( ) > in return ( ) } )
328+ unsafe array. _prespecializeArray ( with: { ( _: inout UnsafeMutableBufferPointer < T > ) -> Optional < ( ) > in return ( ) } )
329329 array. _prespecializeBidirectionalCollection ( )
330330 array. _prespecializeRandomAccessCollection ( )
331331 try ! array. _prespecializeMutableRandomAccessCollection ( cmp: cmp)
332332
333333 let cab = _ContiguousArrayBuffer < T > ( )
334334 cab. _prespecializeContiguousArrayBuffer ( )
335- cab. _prespecializeContiguousArrayBuffer ( range: ( 0 ..< 0 ) , pointer: umbp. baseAddress!)
335+ unsafe cab. _prespecializeContiguousArrayBuffer ( range: ( 0 ..< 0 ) , pointer: umbp. baseAddress!)
336336 cab. _prespecializeContiguousArrayBuffer ( count: 0 , capacity: 0 )
337337 cab. _prespecializeContiguousArrayBuffer ( buffer: cab, index: 0 )
338338
@@ -341,7 +341,7 @@ func prespecializeCollections<T>(_ element: T) {
341341 ab. _prespecializeArrayBuffer ( )
342342 ab. _prespecializeArrayBuffer ( index: 0 )
343343 ab. _prespecializeArrayBuffer ( range: ( 0 ..< 0 ) )
344- ab. _prespecializeArrayBuffer ( range: ( 0 ..< 0 ) , pointer: umbp. baseAddress!)
344+ unsafe ab. _prespecializeArrayBuffer ( range: ( 0 ..< 0 ) , pointer: umbp. baseAddress!)
345345 ab. _prespecializeArrayBuffer ( index: 0 , flag: false )
346346 ab. _prespecializeArrayBuffer ( buffer: cab, index: 0 )
347347 ab. _prespecializeRandomAccessCollection ( after: 0 )
0 commit comments