Skip to content

[6.0] Rename StringRef::endswith references to StringRef::ends_with #72791

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

Closed

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Apr 3, 2024

Explanation: A simple rename from endswith -> ends_with, which has been renamed upstream. This isn't strictly necessary for 6.0, but should ease cherry-picks. I had made the startswith rename prior to the branch, but forgot about endswith.
Scope: NFC as long as it builds - LLVM has both endswith and ends_with defined.
Original PR: #72744
Risk: NFC as long as it builds.
Testing: No specific tests, it either builds or doesn't.

Missed this when doing the `startswith` renaming. `endswith` has also
been deprecated upstream (and presumably soon to be removed).

(cherry picked from commit 1fdda02)
@bnbarham bnbarham added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Apr 3, 2024
@bnbarham bnbarham requested a review from a team as a code owner April 3, 2024 03:15
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

bnbarham commented May 1, 2024

Just going to close this, no one has seemed bothered so far!

@bnbarham bnbarham closed this May 1, 2024
@bnbarham bnbarham deleted the cherry-endswith-rename branch May 1, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants