Fix a minor issue with how lint groups are printed by rustc
This commit is contained in:
parent
a0ee7c9f55
commit
2a7be1b209
@ -255,7 +255,8 @@ fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, bool)>)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user