Skip to content
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

Update str utils to prevent ICEs and FNs #7873

Merged
merged 3 commits into from
Oct 25, 2021

Conversation

xFrednet
Copy link
Member

This PR reworks some string handling for lints regarding enum naming. I hope the refactoring will prevent future ICEs and help with new bug free implementations.

It might be better to review this PR by going through the commits, as clippy_utils::camel_case was renamed to clippy_utils::str_utils and then changed further. GH sadly doesn't really make the changes that obvious 🙃

Not too much more to say. Have a nice day 🌞


Fixes: #7869

changelog: ICE Fix: [enum_variant_names] #7869

@rust-highfive
Copy link

r? @Manishearth

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 24, 2021
@Manishearth
Copy link
Member

@bors r+

thanks!

@bors
Copy link
Contributor

bors commented Oct 25, 2021

📌 Commit 7517ae2 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Oct 25, 2021

⌛ Testing commit 7517ae2 with merge 3ef1f19...

@bors
Copy link
Contributor

bors commented Oct 25, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 3ef1f19 to master...

@bors bors merged commit 3ef1f19 into rust-lang:master Oct 25, 2021
@xFrednet xFrednet deleted the 7869-string-index-ice branch November 11, 2021 18:17
bors added a commit that referenced this pull request Dec 20, 2021
Test clippy_utils in CI

r? `@xFrednet` Since you did the last refactor of the `str_utils` functions in #7873

changelog: Make sure tests in `clippy_utils` are passing by testing it in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-ascii prefix in enum variant names causes compiler panic
4 participants