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

Non ascii in sigle literal #8034

Merged
merged 5 commits into from
Nov 26, 2021

Conversation

togami2864
Copy link
Contributor

fix: #8013
changelog: non_ascii_literal warn against non-ASCII within char, not just strings

@rust-highfive
Copy link

r? @llogiq

(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 Nov 26, 2021
Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

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

Just a small wording nit, otherwise this looks good. Perhaps you want to rename check_str to check_str_or_char or check_non_ascii or something, but if not, that's OK, too.

@@ -28,7 +28,7 @@ declare_clippy_lint! {

declare_clippy_lint! {
/// ### What it does
/// Checks for non-ASCII characters in string literals.
/// Checks for non-ASCII characters in string literals or char.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Checks for non-ASCII characters in string literals or char.
/// Checks for non-ASCII characters in string and char literals.

@llogiq
Copy link
Contributor

llogiq commented Nov 26, 2021

Thank you! @bors r+

@bors
Copy link
Collaborator

bors commented Nov 26, 2021

📌 Commit cd8b724 has been approved by llogiq

@bors
Copy link
Collaborator

bors commented Nov 26, 2021

⌛ Testing commit cd8b724 with merge 5a6169d...

@bors
Copy link
Collaborator

bors commented Nov 26, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 5a6169d to master...

@bors bors merged commit 5a6169d into rust-lang:master Nov 26, 2021
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_literal doesn't catch char literals in single-quotes
4 participants