File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ extension _Unicode {
39
39
struct DefaultScalarView <
40
40
CodeUnits: BidirectionalCollection ,
41
41
Encoding: UnicodeEncoding
42
- > where CodeUnits. Iterator . Element == Encoding . CodeUnit {
42
+ > where CodeUnits. Element == Encoding . CodeUnit , CodeUnits . _Element == CodeUnits . Element {
43
43
var codeUnits : CodeUnits
44
44
init (
45
45
_ codeUnits: CodeUnits ,
@@ -166,7 +166,7 @@ public struct _ReverseIndexingIterator<
166
166
167
167
@_inlineable
168
168
@inline ( __always)
169
- public mutating func next( ) -> Elements . _Element ? {
169
+ public mutating func next( ) -> Elements . Element ? {
170
170
guard _fastPath ( _position != _elements. startIndex) else { return nil }
171
171
_position = _elements. index ( before: _position)
172
172
return _elements [ _position]
@@ -232,7 +232,7 @@ func checkDecodeUTF<Codec : UnicodeCodec & UnicodeEncoding>(
232
232
var result = assertionSuccess ( )
233
233
234
234
func check< C: Collection > ( _ expected: C , _ description: String )
235
- where C. Iterator . Element == UInt32
235
+ where C. Element == UInt32
236
236
{
237
237
if !expected. elementsEqual ( decoded) {
238
238
if result. description == " " { result = assertionFailure ( ) }
You can’t perform that action at this time.
0 commit comments