Skip to content

Commit

Permalink
Fix a minor issue with how lint groups are printed by rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
ftxqxd committed Oct 30, 2014
1 parent a0ee7c9 commit 2a7be1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/driver/mod.rs
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2a7be1b

Please sign in to comment.