about summary refs log tree commit diff
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-10-11 14:34:45 +1300
committerP1start <rewi-github@whanau.org>2014-10-30 17:05:16 +1300
commit2a7be1b209a4ceea42418f55baf68774571ed9a2 (patch)
tree327079021bae736724710a976da0d22aeeacd08e
parenta0ee7c9f55b90a541db1f6f36d18562bdf5ef6bf (diff)
downloadrust-2a7be1b209a4ceea42418f55baf68774571ed9a2.tar.gz
rust-2a7be1b209a4ceea42418f55baf68774571ed9a2.zip
Fix a minor issue with how lint groups are printed by rustc
-rw-r--r--src/librustc/driver/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/driver/mod.rs b/src/librustc/driver/mod.rs
index fbdc0db1665..028d0ec607a 100644
--- a/src/librustc/driver/mod.rs
+++ b/src/librustc/driver/mod.rs
@@ -255,7 +255,8 @@ Available lint options:
         for (name, to) in lints.into_iter() {
             let name = name.chars().map(|x| x.to_lowercase())
                            .collect::<String>().replace("_", "-");
-            let desc = to.into_iter().map(|x| x.as_str()).collect::<Vec<String>>().connect(", ");
+            let desc = to.into_iter().map(|x| x.as_str().replace("_", "-"))
+                         .collect::<Vec<String>>().connect(", ");
             println!("    {}  {}",
                      padded(name.as_slice()), desc);
         }