[stdlib] Add consuming/owned annotations to Collection implementations (#19360)

* Add consuming/owned annotations to Collection implementations

* Update SILOptimizer tests

* Fix access_marker_verify test

* XFAIL reconstruct_type_from_mangled_name
This commit is contained in:
Ben Cohen
2018-09-21 12:06:56 -07:00
committed by GitHub
parent 5f461798b5
commit ae6f5dd604
38 changed files with 150 additions and 150 deletions

View File

@@ -154,7 +154,7 @@ extension EnumeratedSequence.Iterator: IteratorProtocol, Sequence {
extension EnumeratedSequence: Sequence {
/// Returns an iterator over the elements of this sequence.
@inlinable
public func makeIterator() -> Iterator {
public __consuming func makeIterator() -> Iterator {
return Iterator(_base: _base.makeIterator())
}
}