swift
260ade80 - [Unsafe] Teach for..in loops to let the sequence's 'unsafe' cover next()

Commit
233 days ago
[Unsafe] Teach for..in loops to let the sequence's 'unsafe' cover next() Warnings about unsafe uses due to an @unsafe IteratorProtocol conformance (for the implicit call to next()) could not be silenced. Follow the same path we did for the Sequence conformance (and makeIterator() call) by associating it with the `unsafe` on the sequence argument. This isn't the only solution here, but it's a reasonable one.
Author
Committer
Parents
Loading