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
Using unicode literals as indentifier produces a weird warning about snake case #21735
Comments
|
The reason is that some scripts in Unicode (such as kana) have no associated case to them (i.e. they are no-case) and the lint only allows lowercase codepoints. This is E-easy material, but it is unclear whether the lint should just outright accept any non-uppercase codepoint or we should refine the error message to not have “such as EDIT: I recall some other programming language compiler opting to keep emiting a warning if no-case codepoints are present in snake_case identifiers, but I don’t quite recall which language it was. |
An alternative to rust-lang#21749. This also refactors the naming lint code a little bit and slightly rephrases some warnings (`uppercase` → `upper case`). Closes rust-lang#21735.
An alternative to rust-lang#21749. This also refactors the naming lint code a little bit and slightly rephrases some warnings (`uppercase` → `upper case`). Closes rust-lang#21735.
…kfelix An alternative to rust-lang#21749. This also refactors the naming lint code a little bit and slightly rephrases some warnings (`uppercase` → `upper case`). Closes rust-lang#21735.
Sample code (uses Hiragana を as an identifier)
A warning:
The text was updated successfully, but these errors were encountered: