Skip to content

Conversation

@airspeedswift
Copy link
Member

There appears to be an issue affecting inference of associated types with swiftlang/swift#85294, which this works around

@airspeedswift
Copy link
Member Author

@swift-ci smoke test

@airspeedswift
Copy link
Member Author

@swift-ci smoke test and merge

@airspeedswift
Copy link
Member Author

Merging this since it's reasonable to make the type alias explicit even though it's not necessary.

@airspeedswift
Copy link
Member Author

@swift-ci test macOS

@shahmishal
Copy link
Member

@swift-ci test Linux

@airspeedswift airspeedswift merged commit 8d2248d into swiftlang:main Dec 1, 2025
25 checks passed
/// An implementation of the Boyer-Moore-Horspool algorithm, for string-specific
/// searching.
struct SubstringSearcher: Sequence, IteratorProtocol {
typealias Element = Range<String.Index>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well change Range<String.Index> below to Element also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants