We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52ec8bd + 298a6e6 commit d09a0cdCopy full SHA for d09a0cd
src/librustc_lint/builtin.rs
@@ -923,6 +923,8 @@ impl NonSnakeCase {
923
allow_underscore = match c {
924
'_' if !allow_underscore => return false,
925
'_' => false,
926
+ // It would be more obvious to use `c.is_lowercase()`,
927
+ // but some characters do not have a lowercase form
928
c if !c.is_uppercase() => true,
929
_ => return false,
930
};
0 commit comments