-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Regex] Switch regex match to Swift tuples. #41275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bcac635
to
9cf9ec7
Compare
@@ -10,41 +10,39 @@ takesRegex('//') // okay | |||
let r1 = '/.(.)/' | |||
// Note: We test its type with a separate statement so that we know the type | |||
// checker inferred the regex's type independently without contextual types. | |||
let _: Regex<Tuple2<Substring, Substring>>.Type = type(of: r1) | |||
let _: Regex<(Substring, Substring)>.Type = type(of: r1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For someone to pick up these test changes as fixes instead of failures, would they need to run update-checkout, or are the tests versioned by tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They would need to update-checkout and re-run build-script.
@swift-ci please test |
9cf9ec7
to
c5e45dc
Compare
@swift-ci please test |
c5e45dc
to
7fd0e22
Compare
Typed captures no longer use ad-hoc nominal tuples. We use Swift native tuples instead. See swiftlang/swift-experimental-string-processing#127. Update checkout tag to dev/6.
7fd0e22
to
cf8e0fe
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
@swift-ci please test macOS |
Bumping the tag requires CI to be updated separately. |
Typed captures no longer use ad-hoc nominal tuples. We use Swift native tuples instead. See swiftlang/swift-experimental-string-processing#127.
Update checkout tag to dev/6.