diff options
| author | P1start <rewi-github@whanau.org> | 2014-10-11 14:34:45 +1300 |
|---|---|---|
| committer | P1start <rewi-github@whanau.org> | 2014-10-30 17:05:16 +1300 |
| commit | 2a7be1b209a4ceea42418f55baf68774571ed9a2 (patch) | |
| tree | 327079021bae736724710a976da0d22aeeacd08e | |
| parent | a0ee7c9f55b90a541db1f6f36d18562bdf5ef6bf (diff) | |
| download | rust-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.rs | 3 |
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); } |
