Skip to content

[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

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Feb 8, 2022

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.

@rxwei rxwei requested review from rintaro and milseman February 8, 2022 21:51
@rxwei rxwei force-pushed the regex-update-dev-6 branch 2 times, most recently from bcac635 to 9cf9ec7 Compare February 8, 2022 21:54
@@ -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)
Copy link
Member

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?

Copy link
Contributor Author

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.

@rxwei
Copy link
Contributor Author

rxwei commented Feb 8, 2022

@swift-ci please test

@rxwei rxwei force-pushed the regex-update-dev-6 branch from 9cf9ec7 to c5e45dc Compare February 8, 2022 23:48
@rxwei
Copy link
Contributor Author

rxwei commented Feb 8, 2022

@swift-ci please test

@rxwei rxwei force-pushed the regex-update-dev-6 branch from c5e45dc to 7fd0e22 Compare February 10, 2022 00:13
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.
@rxwei rxwei force-pushed the regex-update-dev-6 branch from 7fd0e22 to cf8e0fe Compare February 10, 2022 00:22
@rxwei
Copy link
Contributor Author

rxwei commented Feb 10, 2022

@swift-ci please smoke test

@rxwei
Copy link
Contributor Author

rxwei commented Feb 10, 2022

@swift-ci please smoke test macOS

@rxwei
Copy link
Contributor Author

rxwei commented Feb 10, 2022

@swift-ci please test macOS

@rxwei rxwei merged commit 7179a8d into swiftlang:main Feb 10, 2022
@rxwei rxwei deleted the regex-update-dev-6 branch February 10, 2022 19:19
@shahmishal
Copy link
Member

Bumping the tag requires CI to be updated separately.

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