about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-04-20 21:15:54 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-04-20 21:15:54 -0400
commitd09a0cda3a2268c081311c7ddf262c104130c7d2 (patch)
tree349cfaa425dcd08ea997cebe9cb1de47cc978d46
parent52ec8bdf731d9d588f98014f70932b37bf8b0b92 (diff)
parent298a6e66579e5e56fbe2d67f9a4b92f6e1e58ccc (diff)
Rollup merge of #24642 - tshepang:why-be-negative, r=huonw
-rw-r--r--src/librustc_lint/builtin.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs
index 7f1a4b659ed..c12ac501c45 100644
--- a/src/librustc_lint/builtin.rs
+++ b/src/librustc_lint/builtin.rs
@@ -923,6 +923,8 @@ impl NonSnakeCase {
                 allow_underscore = match c {
                     '_' if !allow_underscore => return false,
                     '_' => false,
+                    // It would be more obvious to use `c.is_lowercase()`,
+                    // but some characters do not have a lowercase form
                     c if !c.is_uppercase() => true,
                     _ => return false,
                 };