File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,12 @@ extension _UnsafeBitset.Word {
309
309
// problems in normal use, because `next()` is usually called on a separate
310
310
// iterator, not the original word.
311
311
extension _UnsafeBitset . Word : Sequence , IteratorProtocol {
312
+
313
+ #if $NoncopyableGenerics
314
+ @usableFromInline
315
+ typealias Element = Int
316
+ #endif
317
+
312
318
@inlinable
313
319
internal var count : Int {
314
320
return value. nonzeroBitCount
Original file line number Diff line number Diff line change @@ -1231,6 +1231,11 @@ internal struct _ClosureBasedSequence<Iterator: IteratorProtocol> {
1231
1231
}
1232
1232
1233
1233
extension _ClosureBasedSequence : Sequence {
1234
+
1235
+ #if $NoncopyableGenerics
1236
+ public typealias Element = Iterator . Element
1237
+ #endif
1238
+
1234
1239
@inlinable
1235
1240
internal func makeIterator( ) -> Iterator {
1236
1241
return _makeUnderlyingIterator ( )
Original file line number Diff line number Diff line change @@ -1241,6 +1241,11 @@ public struct IteratorSequence<Base: IteratorProtocol> {
1241
1241
}
1242
1242
1243
1243
extension IteratorSequence : IteratorProtocol , Sequence {
1244
+
1245
+ #if $NoncopyableGenerics
1246
+ public typealias Element = Base . Element
1247
+ #endif
1248
+
1244
1249
/// Advances to the next element and returns it, or `nil` if no next element
1245
1250
/// exists.
1246
1251
///
You can’t perform that action at this time.
0 commit comments